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 Apr 22, 2012Ok but how to fix it
I try to if i go to that site it turn it to day but its say error in php i
i try php to websend php from my website to websend
It is a Nice Man
-
View User Profile
-
Send Message
Posted Apr 22, 2012/websend still dont do any thing :(
and what you mean with php script in a php
Ant thx for my mate
-
View User Profile
-
Send Message
Posted Apr 22, 2012@Defman0
1. You are using a websend-to-php script in a php-to-websend connection. That's not going to work.
http://dev.bukkit.org/server-mods/websend/pages/types-of-communication/
2. The exception either says that you used the /reload command or that another program is using the 4445 port.
Try restarting your server instead of using reload.
-
View User Profile
-
Send Message
Posted Apr 22, 2012if you want to see what error that give goto my test site on my pc
-
View User Profile
-
Send Message
Posted Apr 22, 2012my browser its phpmyadmin there say that
and the /ws command dosent do any thing with me
the plugin run and give that error i right now have find
java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source) at java.net.AbstractPlainSocketImpl.bind(Unknown Source) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at Waterflames.websend.server.CommunicationServer.startServer(CommunicationServer.java:30) at Waterflames.websend.server.CommunicationServer.run(CommunicationServer.java:22)
can you allso help with fix that so are you a nice man
-
View User Profile
-
Send Message
Posted Apr 22, 2012@Defman0
May I suggest the use of the excellent http://pastie.org/ for your code?
How are you accessing this page? Through /ws or through your browser?
-
View User Profile
-
Send Message
Posted Apr 22, 2012Syntax Error:(
Syntax error on the site minecraft.php ( ! ) Notice: Undefined index: authKey in C:\wamp\www\mc\minecraft.php on line 6 Call Stack
( ! ) Notice: Undefined index: player in C:\wamp\www\mc\minecraft.php on line 7 Call Stack
( ! ) Notice: Undefined index: args in C:\wamp\www\mc\minecraft.php on line 8 Call Stack
can any help
php code
<?php try{ $HOST = "XX.XXX.XX.XXX"; the ip of the bukkit server $password = "XXXXXXXX"; Can't touch this: $sock = socket_create(AF_INET, SOCK_STREAM, 0) or die("error: could not create socket\n"); $succ = socket_connect($sock, $HOST, 4445) or die("error: could not connect to host\n"); Authentification socket_write($sock, $command = md5($password)."<Password>", strlen($command) + 1) or die("error: failed to write to socket\n"); Begin custom code here. socket_write($sock, $command = "/Command/ExecuteConsoleCommandAndReturn-SimpleBroadCast:broadcast lol;", strlen($command) + 1) Writing text/command we want to send to the server or die("error: failed to write to socket\n"); sleep(2); while(($returnedString = socket_read($sock,50000))!= ""){ $returnedString = socket_read($sock,50000,PHP_NORMAL_READ); print("End of script"); socket_close($sock); print($returnedString) } }catch(Exception $e){ echo $e->getMessage(); } ?>
Websend congi.txt
Can any help me.
-
View User Profile
-
Send Message
Posted Apr 21, 2012Websend does not have the proper ways to deal with potions. Neither the data, nor the enchantments are properly storing the potion data.
-
View User Profile
-
Send Message
Posted Apr 14, 2012@Conderan
AFAIK not implementet yet but you can use the respawn event.
-
View User Profile
-
Send Message
Posted Apr 12, 2012For WSEvents, any suggestions on detecting if a player dies?
-
View User Profile
-
Send Message
Posted Apr 12, 2012@UbuntuFreak
Nope my hoster got socket enable on his PHP info.
-
View User Profile
-
Send Message
Posted Apr 12, 2012@UbuntuFreak
The permission should just be websend If it really doesn't work, make yourself op.
-
View User Profile
-
Send Message
Posted Apr 12, 2012@Waterflames
ATM I'm using PermissionsEx because The Yeti's Permissions didn't work with Websend.
@blackdevil72
Maybe you have the same problem as I, I only have to use fsockopen() function because sockets are disabled by the webhoster.
-
View User Profile
-
Send Message
Posted Apr 11, 2012Hi I ghot some trouble using PHP -> bukkit commands.
The socket is created but it apears commands never arrived to bukkit. I created a topic in the forum part with more details.
-
View User Profile
-
Send Message
Posted Apr 11, 2012@UbuntuFreak
What permissions plugin are you using?
-
View User Profile
-
Send Message
Posted Apr 11, 2012Somehow I am not allowed to use the /ws command, even if I have the websend permission. Do you know why?
-
View User Profile
-
Send Message
Posted Apr 11, 2012@GrayPoint
Your version of Java is to old for the version you downloaded. If you are running the 2.0 Alpha, either upgrade to 1.7 or wait for the next build. If not, you need 1.6 or higher.
-
View User Profile
-
Send Message
Posted Apr 11, 2012I get this error, when i startup the server:
-
View User Profile
-
Send Message
Posted Apr 9, 2012@FrostEnergy
Well for now, you could do a /ws from your php, store the incoming variables and show them. Future versions of websend might include a data query function.
-
View User Profile
-
Send Message
Posted Apr 9, 2012@Waterflames
Thanks for your reply! So for testing purposes, I replaced my code with the example minecraft.php. and what i got was: When typing just /ws it would say "no enough data provided" and when typing /ws weatherset. it would respond accordingly as the script is written. Now my question is: how would I go about making this script actively show data on the website end, without having to issue commands in-game to get it?
I saw one of the possibilities being a web-based console. That would be great! As well as my attempt to show current server stats. like ram and player slot usage.