PHPsend
PHPsend
Execute console commands using PHP scripts on website!
This plugin provides simple API and lightweight plugin to allow you command your server from your webpage!
To all updating people. You will have to update your scripts plugins, the main thing is that now functions are prefixed with PHPS instead of PHP (for example old PHPconnect is now PHPSconnect).
PHPsend is now PHPSend**
NEW VERSION
- Logging level (No more console spam!), new logging system
- Hash algorithm is now SHA1
- Player associated commands
- New command: phpsend reload to let you reload config and whitelist without server restart
- IP Whitelist for both php script and plugin
- Post argument style
- Protocol names are now with PHPS instead of PHP (like PHPconnect is now PHPSconnect)
- New plugin hook: onWebCommandAsPlayer
- Cleaned up code
- Minor bugs fixed, more exceptions handled.
- Add few API functions to make your life even simplier.
Pages are updated now. Just wait for approval.
Features:
- Execute commands from web
- Using SHA1 password to authenticate
- Simple API with few fuctions!
- Configurable port (default: 11223)
- EXTREME small
- Support for /reload!!!
Plugin API Tutorial - Making simple online player website
Dev Builds
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
-
View User Profile
-
Send Message
Posted Dec 16, 2012@MsPtibiscuit
I found the bug. It happens when you get End Of Stream error. Why do you get it in your scripts? I don't know... You must figure it out yourself or give me more info and then I can help you.
-
View User Profile
-
Send Message
Posted Dec 15, 2012@kittyPL
I just tested the 1.0, with a normal "say Test", I think it occurs when I execute my script fastly (When I hit F5), i'll try to modify your source to handle (p == null), but I'm afraid that I loose some requests
-
View User Profile
-
Send Message
Posted Dec 15, 2012@MsPtibiscuit
Can you give some more info about this error? When have it occured, what did you do?
-
View User Profile
-
Send Message
Posted Dec 15, 2012@MsPtibiscuit
And yeah, the 1,0 feature are awesome, but with the actual bugs, the plugin is unusuable. If you could make a stable version fastly, that would be awesome. :)
-
View User Profile
-
Send Message
Posted Dec 15, 2012Hello
Sometimes, I get this error:
And then, PhpSend just stop working (I think the thread just shutdown). Do you know when the fix version will be released ? (I personnaly won't use the script system, but I need a fixed version so bad ! :X)
-
View User Profile
-
Send Message
Posted Dec 15, 2012I can't see how sendername xxxx,yyyyy,zzzz and maybe playerip ...is that much extra info to include in a POST for when someones uses the command.
looking at similar plugins they send a lot more data by default so this is pretty lightweight in comparison even if you included the above..
I'm waiting for scripts anyway hopefully then can just do it then I can make use of that extra data.
-
View User Profile
-
Send Message
Posted Dec 14, 2012@Bw2801
Hmmm. Do you run the full code from tutorial? Did you change anything? Can you post the line with error (Some code next to it would be nice too)? I will try to help ;)
-
View User Profile
-
Send Message
Posted Dec 14, 2012@XeonG8
As I said, extra info = extra packets, so more data is sended. PHPsend shouldn't send packets you don't need, so I won't just add it. Wait for scripts, then you will be able to add own command for that.
-
View User Profile
-
Send Message
Posted Dec 14, 2012"phpSend and any way to get the Players coordinates"
I use skript to get player coordinates, username and pass that in args for /website send... it really that phpsend should be able to send automatically though along with senders ip address. That way the line /website etc . ..is less limited by input length, as phpsend just attaches that extra info
-
View User Profile
-
Send Message
Posted Dec 14, 2012@kittyPL
Hey! I get following error on using your example code for maximum players:
-
View User Profile
-
Send Message
Posted Dec 14, 2012@cyberkeiler
You can transform your server into a real webservice with PhpSend. I personnaly create a plugin to get the BeardStat from my website to create achievements in the website. Possibilities are infinite ! ._.
-
View User Profile
-
Send Message
Posted Dec 14, 2012@cyberkeiler
Hm, This is a nice feaure for next vesion. I think I will release some bugfixes and new features soon, and then add scripting language since it's another project (That will be included in PHPsend).
-
View User Profile
-
Send Message
Posted Dec 13, 2012Fantastic - As a passionated PHP Coder I'm really happy about this way to influence gameflow on our server! Any way/Plugin which has "WorldEdit functionality" and is controllable via Console/phpSend and any way to get the Players coordinates?
With the possibilty to edit the world via Webinterface would just blew this Plugin to a new level.
-
View User Profile
-
Send Message
Posted Dec 11, 2012@XeonG8
90% of my free time goes for PHPsend... Doing my best :)
-
View User Profile
-
Send Message
Posted Dec 11, 2012Woudl be nice if you could get a update out sooner for the message sending in the /websend
so like you said users don't have to do message=This_is_a_message
-
View User Profile
-
Send Message
Posted Dec 6, 2012@MsPtibiscuit
My script language is still in early alpha stage... Not very soon...
-
View User Profile
-
Send Message
Posted Dec 6, 2012@kittyPL
F'cking awesome, do you have any idea when this version will be released ?
-
View User Profile
-
Send Message
Posted Dec 6, 2012@MsPtibiscuit
New version will add pluginlike scripts, so you can do that with one line ;)
-
View User Profile
-
Send Message
Posted Dec 5, 201205.12 04:57:10 [Server] INFO PHPsend page end
---- 05.12 04:57:10 [Server] INFO PHPsend page start---- 05.12 04:57:10 [Server] INFO (ERR) Website command, arg[4] has no equation ("=") character...This is annoying as you can't do
/website blah=note m=this is text and all goes with m. arg2=newargument
and have it post the complete line of text that goes after m= ...you can't even put it in "quotes like these"
Also I'd much rather have some config option where I can make a command and set the receiving page ie postDataUrl
sort of like command1: /whatever postDataUrl1: http://whatever.com/whatever.php command2: /whenever postDataUrl2: http://whenever.com/whenever.php
And what would also be hugely helpful is if like WebSend, PHPsend automatically added in extra post data to the url. Like playername of command sender, and there ip address would be most useful at the minimum.
Otherwise you're forcing uses who want to use this feature in your to have to try and cram in this extra info on "/websend playername=blah text=wish this actually worked arg3= arg4=blah2 arg5=blah3" ..or learn java which I ain't got time for :D
So you soon reach the 100 char limit or whatever it is and making shorter arguments etc still don't help much... so it would be most useful if PHPSend could just handle sending as much extra info like who sent the command behind the scenes.
anyway looking forward to new version.
-
View User Profile
-
Send Message
Posted Dec 5, 2012Hi,
I've already said it, but I love your plugin, it is way better than WebSend with the v1.0, I still have to upgrade MineShop (http://www.bukkit.fr/index.php?threads/mineshop.3615/ in French, if you want to see how I use your plugin :)) to the newest version. The API is just perfect, I think I will use it.
Maybe there's one thing you should do, default website command. I mean, I think it will annoy people to create or install a plugin just to get the number of connected people and display it on a website. You should add some default command like "GetCountOnlinePlayers" and "GetOnlinePlayers", ... That would be fucking awesome.
Thanks again