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 Jul 13, 2012@Conderan I think he is referring to the Java Scripts (new in 2.0), not javascript (confusing, I know).
@ryan_the_leach Yes, they are run the same JVM and on the same thread as bukkit so you can access bukkit through the static methods in the Bukkit class.
@LanToaster Possibly, altough I doubt it since it stopped working on my server and I didn't change the php version.
@UbuntuFreak Thats because event specific data is not yet included in the request. Its on the todo list.
-
View User Profile
-
Send Message
Posted Jul 13, 2012@ryan_the_leach
I wouldn't think this would work with javascript because javascript is a client-side language, while php is server side. There are many other server languages that I bet someone could make work, though.
-
View User Profile
-
Send Message
Posted Jul 13, 2012Can the java scripts interact with bukkit at all or return output to websend?
could you prehaps provide an example of one?
also a heads up, i had to decompile your program just to get the response URL happening in the config, you may want to add that to the config writer
-
View User Profile
-
Send Message
Posted Jul 10, 2012Could it be an other Version of PHP?
-
View User Profile
-
Send Message
Posted Jul 10, 2012I have a question to WSEvents. When an event happens (e.g. a player chats) the /ws command is issued. But the only things I can get are $args[0] = event and $args[1] = chatEnabled but not the chat message. Can you please tell me what I'm making wrong?
-
View User Profile
-
Send Message
Posted Jul 9, 2012@Waterflames
I was able to figure that part out. I simply had no idea what to do about it. I'm not so advanced yet in php. But I must say. Having Websend has been a great aid in helping me get there!
-
View User Profile
-
Send Message
Posted Jul 9, 2012@FrostEnergy
No, I'm 99% sure its not java, bukkit or anything mc server related. The error is thrown in the byte read php function at "unpack()".
-
View User Profile
-
Send Message
Posted Jul 9, 2012@Waterflames
I would be very appreciative of this! :] I'm very anxious to start updating all my code. But I want to get this test run working before I do.
p.s. Do you think the bukkit build has anything to do with it? I am on build #2254
-
View User Profile
-
Send Message
Posted Jul 9, 2012@Alphaspida Glad you like it.
@FrostEnergy & @LanToaster
Seems like alot of people are having that problem. Strange part is that I didn't change anything to that code. I'm looking into it. If you find a solution, please share :)
-
View User Profile
-
Send Message
Posted Jul 9, 2012I love you man, no homo. I have a whole web front end and this completes it. <333
-
View User Profile
-
Send Message
Posted Jul 9, 2012I am having issues making the php > bukkit connection in this new update. *scratches head*
Here is what I am working with: Websend.php - Completely "stock" / no changes.
ExternalTimeSet.php (below):
Config.yml PASS=testing WEBLISTENER_ACTIVE=true
This produces the following error in the apache2 error log. [Mon Jul 09 13:24:13 2012] [error] [client 192.168.1.240] PHP Warning: unpack(): Type C: not enough input, need 1, have 0 in /var/www/frostmournemc/minecraft/websend2/Websend.php on line 81, referer: http://www.frostmournemc.com/minecraft/websend2/
Any Ideas or help would be greatly appreciated! I need to get this flowing well before I begin updating ;)
-
View User Profile
-
Send Message
Posted Jul 9, 2012Well, good to know i have an Error-Log for my Website, Heres the Errors wich are thrown out when Using the TimeSet script: http://pastebin.com/c6tbJHLn
-
View User Profile
-
Send Message
Posted Jul 9, 2012@LanToaster
Look for errors in the error_log file. Mine is located in /var/log/httpd
If you find an error that was caused by the Websend.php, please post the error.
-
View User Profile
-
Send Message
Posted Jul 9, 2012Are there "Error" Messages coded in? Because i Tried it, and it just does Nothing (PHP -> Bukkit) No error, Just blank white page. Tried with the ExampleTimeSet.php tried all forms host. DomainName, IP of the server and localhost aswell as 127.0.0.1
-
View User Profile
-
Send Message
Posted Jul 8, 2012@MariuszT In 2.0 you have to use the /Output tags
@LanToaster Take a look at the supplied examples. That should help :)
-
View User Profile
-
Send Message
Posted Jul 8, 2012Hmmm strange... In new version 2.0 BETA scripts working but nothing is displayed after echo :( I put echo 'test'; exit; in first line and still nothing :(
-
View User Profile
-
Send Message
Posted Jul 8, 2012I already Downloaded it. And the new Syntax in the websend.php is really confusing me. Is the current websend.php doing anything? Because i cant figure out what does what. And how i could change it.
Edit: Well I am just Stooooopid, but i think i just figured it out. Edit2: Iam just not sure where to Put my ServerIP and Password.
-
View User Profile
-
Send Message
Posted Jul 8, 2012@Ezriilc Glad you like it :)
@LanToaster Websend 2.0 BETA has better support for output. What you want is in that release.
I suggest you try it out :)
-
View User Profile
-
Send Message
Posted Jul 8, 2012@GlabbichRulz
Well, Tell from the Console Looks Crappy.
I Wrote a QuestSystem over WebSend and OtherDrops, and i Wanted to show the Progress. But i figured a way out, otherdrops sends the Commands now as User.
And iam Looking forward to the Websend 2.0 Release. I wish i could test it, but I dont want to Screw with the Systems on my Server, as we Heavily depend on it. :D If it Fails, all comes crumbling down.
Anyway, thanks for this Awesome Plugin
-
View User Profile
-
Send Message
Posted Jul 8, 2012@Waterflames,
Re: Websend 2.0 BETA
Thank you for "onlinePlayersIP[]"! So cool. Now our server should be able to automatically authenticate a web visitor that is logged into Minecraft.
I need to update Bukkit from R1.0 to R4.0, and the rest of my plugins of course, and then tweak my webpage, but it should work. I'll report any problems, but I don't expect any.
Thanks, thanks, thanks!