Websend
Websend
EOL notice:
After almost 6 years, this plugin has reached an end-of-life status.
I will no longer be maintaining this plugin. If you are a developer and are interested in the source code of this project, feel free to use it as it is published under an MIT license.
To all the great people in the community: Thank you for the wonderful time!
Documentation can be found on Github wiki. (Edit: 9/2/2017: link fixed)
Source code can be found on Github.
What does this plugin do?
This plugin enables PHP developers to access minecraft commands from a web-based script.
A scheme: Ingame command -> Your php-enabled server -> Your PHP file does stuff and provides output/commands -> Plugin executes commands and prints output. Or: Webpage command -> bukkit server -> Plugin executes commands and prints output.
A few of the possibilities:
Online adminstration screen Online console Membership system (become VIP with a donation) Paypal donation system ...
Features:
Seperate thread (no server lag because of the wait.) Commands (ingame or console emulation) Command to color output send from php. Secure connection (protected with password hash) Permissions support (just "websend") Both ways enabled (PHP -> bukkit | bukkit -> php (-> bukkit))
Head over to the files for the latest version, and here for installation instructions.
Documentation and more.
-
View User Profile
-
Send Message
Posted Feb 1, 2012@Waterflames
2012-02-01 18:53:40 [INFO] <style>.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e 2012-02-01 18:53:40 [INFO] text-decoration: none 2012-02-01 18:53:40 [INFO] } .bpe a:hover { color: #0D7CEC 2012-02-01 18:53:40 [INFO] }</style> 2012-02-01 18:53:40 [INFO] <span class="bpe" style="font: 11px/1.2em Verdana, sans-serif 2012-02-01 18:53:40 [INFO] "><br /> 2012-02-01 18:53:40 [INFO] <b>Fatal error</b>: Call to undefined function socket_create() in <b>/users/mcbuild/www/ExternalTimeSet.php</b> on line <b>7</b><br /> 2012-02-01 18:53:40 [INFO] </span>
That's the new error!
-
View User Profile
-
Send Message
Posted Feb 1, 2012@Lockolu
Check the URL in your config file. It should be like: http://example.com/examplesubfolder/minecraft.php
-
View User Profile
-
Send Message
Posted Feb 1, 20122012-02-01 17:39:13 [SEVERE] Websend: Error while parsing URL: null java.net.MalformedURLException at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at Waterflames.websend.POSTHandler.<init>(POSTHandler.java:43) at Waterflames.websend.PosterThread.run(PosterThread.java:36) Caused by: java.lang.NullPointerException ... 5 more 2012-02-01 17:39:13 [SEVERE] An error occured while trying to do a bukkit -> php connection. (POST) java.lang.NullPointerException at Waterflames.websend.POSTHandler.sendPOST(POSTHandler.java:73) at Waterflames.websend.PosterThread.run(PosterThread.java:41)
This the error that I currently get! I use CB #1846!
-
View User Profile
-
Send Message
Posted Feb 1, 2012@leonhunter
Sent you a PM.
-
View User Profile
-
Send Message
Posted Feb 1, 2012@Waterflames
Already tried bukkit aliasing, it didnt work.
-
View User Profile
-
Send Message
Posted Feb 1, 2012@leonhunter
Thank you very, VERY much :D
Alias-able commands are possible with the bukkit.yml in your server map. (If that doesn't work, contact me, I might have a beta plugin somewhere ;))
-
View User Profile
-
Send Message
Posted Feb 1, 2012@Waterflames
I just donated 50 EUR, thanks for adding that stuff.
My only other request, aliasable commands!
-
View User Profile
-
Send Message
Posted Jan 31, 2012@Waterflames
If you know how does it work...
-
View User Profile
-
Send Message
Posted Jan 31, 2012@ZacGod
Thank you! :)
-
View User Profile
-
Send Message
Posted Jan 31, 2012@Waterflames
Best plugin for websites :)
-
View User Profile
-
Send Message
Posted Jan 31, 2012NEW VERSION (1.3):
Download
-
View User Profile
-
Send Message
Posted Jan 31, 2012@leonhunter
How would like to have the inventory contents sorted? ItemID and amount in arrays?
EDIT: I made it so each inventory slot is one string in an array. The string contains first the itemID, then a / as seperator and then the amount. (example: 1/5 is 5 blocks of stone)
-
View User Profile
-
Send Message
Posted Jan 31, 2012@leonhunter
The only way i could imagine even trying to figure that out, is if you stored a key locally in a DB, and in each command, log who is doing it, and managing a way to track it... (basically, creating artificial users for PHP...but that gets complicated XD) depending on what you're trying to do, you can probably artificially make something/ (slap something sloppy together )
-
View User Profile
-
Send Message
Posted Jan 31, 2012@leonhunter
Since websend sends commands from 1 machine, the bukkit server, php sees websend as 1 user. Unless you know some way around this, I'm afraid this isn't possible.
-
View User Profile
-
Send Message
Posted Jan 31, 2012@Waterflames
Thx! :)
-
View User Profile
-
Send Message
Posted Jan 31, 2012@Waterflames
Also, this might be crazy and all, but is it technically viable to support PHP sessions? Like, per player per command sessions? Im not sure, it was an idea the crossed my mind and would be really useful.
-
View User Profile
-
Send Message
Posted Jan 30, 2012@leonhunter Consider it done!
@ZacGod ASAP, shouldn't be much longer.
-
View User Profile
-
Send Message
Posted Jan 30, 2012@Waterflames
Thanks, the only other thing I can think of worth adding is an "isOp" 1/0 to the post data so the php script can tell if the player is an operator.
If you can add that as well as the aforementioned (Player IP, Currently held item id and inventory contents array) I'd more than happily donate $50
-
View User Profile
-
Send Message
Posted Jan 30, 2012How long till colors update :)?
-
View User Profile
-
Send Message
Posted Jan 30, 2012@Lockolu
Official paypal ipn info, including code samples: https://www.paypal.com/ipn Google search: http://www.google.com/search?q=setting+up+ipn+php&oq=setting+up+ipn+php
Websend setup info: http://dev.bukkit.org/server-mods/websend/pages/