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 Jan 4, 2012This is probably the single most useful plugin I've ever found. I'm completely terrible at java, but decent at php.
Right now I'm writing a donation script for my server using this. However, some other things else i've done are let one of my moderators kill her brother (and, only her brother) with a command into websend, and set up announcements that feed from a mysql database.
Just a couple interesting ideas, and I realize this might take a lot:
1. Might be nice if we could set up aliases of certain commands... so that say, /websend killbrother would only actually require me to type /killbrother. I'm thinking some sort of configuration option for this would be amazing. No need to just pass any unused /commands to the web server.
2. If those commands had their own separate permission nodes, somehow.. in my example websend.killbrother might be required to make the /killbrother i've done work, but, anyone with the websend permission could still do /websend killbrother. This way we could give out say, /killbrother without giving out the ability to make an announcement trigger.
-
View User Profile
-
Send Message
Posted Jan 3, 2012@Waterflames
Hopefully it will be soon :D
-
View User Profile
-
Send Message
Posted Jan 3, 2012@3LPlay
Not yet, I'm working on rewriting a big part of Websend. When that is finished, I will work further on output capturing.
-
View User Profile
-
Send Message
Posted Jan 3, 2012I really want to use the Plugin output Capturing with the normal bukkit, is there no chance of doing this? :(
-
View User Profile
-
Send Message
Posted Dec 29, 2011@patnik
Put ALTPORT=3333 in your settings file
-
View User Profile
-
Send Message
Posted Dec 29, 2011Is it possible to set the example for websend 3333 no port 4445 is busy and the need for two servers websend
sory for my bad english
-
View User Profile
-
Send Message
Posted Dec 23, 2011@VADemon
Im assuming 127.0.0.1 is your webserver. If so: yes if write a php file that uses GET info for command and forwards that together with the password to websend
-
View User Profile
-
Send Message
Posted Dec 23, 2011(Sorry for (maybe) stupid question)
Is there a way to send a command directly to console like forums.bukkit.org/threads/12504/
Something like this:
http://127.0.0.1:8765/console?command=save-all
-
View User Profile
-
Send Message
Posted Dec 22, 2011Looks good!
-
View User Profile
-
Send Message
Posted Dec 18, 2011@Kaosvf Since a php -> bukkit connection has no POST values, you'll need to work around this. Make a php -> bukkit connection and emulate a player websend command like this: ExecuteBukkitCommand-onlinePlayerYouWantTheHealthOf:ws commandName
Then websend will send the POST values to the url specified in you config under URL:
-
View User Profile
-
Send Message
Posted Dec 18, 2011Hi, with the new version 1.0 how can I print (for example) the health of a player on a php page? Regards.
-
View User Profile
-
Send Message
Posted Dec 15, 2011That's fantastic news Waterflames. Expect a donation from me with the new verison :)
-
View User Profile
-
Send Message
Posted Dec 15, 2011@pudd1nG
Sure, I'll include it in 1.0
Didn't think I'd receive donations :P I'll add a paypal option.
-
View User Profile
-
Send Message
Posted Dec 15, 2011Would it be possible to include the players coordinates and world in the $_POST? Would be amazing! Really loving this plugin.
p.s. Why no donation methods!?!?!
-
View User Profile
-
Send Message
Posted Dec 11, 2011@Sejsel
Sorry, but I am going to wait until a stable recommended build is released. EDIT: I updated to build 1597.
-
View User Profile
-
Send Message
Posted Dec 11, 2011Can you update this to 1.0.0 builds? I am getting quite big amount of errors, it is not much stable..
-
View User Profile
-
Send Message
Posted Dec 4, 2011@bukkster
Check your connection. Is ip correct? port in php on 4445? bukkit server with websend running? websend config correctly setup to support php -> bukkit? Firewalls ok? Ports forwarded?
-
View User Profile
-
Send Message
Posted Dec 4, 2011Hey! It doesn't work. I can't understand why.. Do you have Skype? So we can write there.
Warning: socket_connect() [function.socket-connect]: unable to connect [110]: Connection timed out in /home/a1998448/public_html/ExternalTimeSet.php on line 9
@BASTOFA: Hey! Du bist deutsch. Kannst du mir vielleicht auch helfen? Schreib zurück ;)
-
View User Profile
-
Send Message
Posted Dec 4, 2011@TheFatDemon Open a forum post and post your question and code there. That will make it easier for me to help you.
-
View User Profile
-
Send Message
Posted Dec 2, 2011Hey i get the error 18:00:03 [INFO] WARNING: During a web-triggered connection attempt 18:00:03 [INFO] no password was found on the first line, any command 18:00:03 [INFO] before the authentification will be ignored. 18:00:03 [SEVERE] Exception in thread "Thread-114" 18:00:03 [SEVERE] java.lang.NullPointerException 18:00:03 [SEVERE] at websend.PHPSktSrvrThread.run(Main.java:357)
any help? thanks