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.
Failed to construct URL from config
i get this error every time i use /websend command
any solution?
[04:07:36 INFO]: [WSEvents] Enabling WSEvents v0.6 [04:07:37 ERROR]: Error occurred while enabling WSEvents v0.6 (Is it up to date? ) java.lang.OutOfMemoryError: Java heap space ??
I am getting an error when trying to use this. It says that there is an error on line 127 of Websend.php - I am using the 2.5.4 Websend version.
This is the error code:
Warning: unpack() [function.unpack]: Type C: not enough input, need 1, have 0 in /var/www/xxxxxxxx.com/Websend.php on line 127
@Simon816
I'd like to port it over. Whether or not this happens depends on the structure of the new API (lots of rewrite required?), stability and popularity of Sponge.
Any chance this will be ported over to Sponge when it's ready?
YES IT'S Work i have create a register in game awesome :o
@567legodude
And if you read this error 3 times in loud voice, then you hear "HTTP REQUEST FAILED" and that error means, your webpage, where you store your php files cant connect to your Minecraft server because, port what you use in Websend config is not opened in you webpage server!
Find another webpage where you can store your php file!
I can't get this to work, I have configured everything correctly, but when I execute commands, it says HTTP request failed. (Internal Server Error)
I've set up my WebSend to request MySQL data to display player's current votes.But granting people the "Websend" permission isn't really something I'd like to do. It would be awesome if I didn't have to do this huge workaround with custom commands to make it so that they can execute a Websend command without risking the server's security.
In other words, it would be amazing if there was some sort of permissions that you needed to execute specific commands.
Hi, How can I execute a command when a player joins ? I want to send to my PHP Server the name of the new player. Is it possible using WSEvents ?
Thanks.
better than phpsend? http://dev.bukkit.org/server-mods/phpsend/#comments
@J5lx
AFAIK GH Pages doesnt do PHP..?
@J5lx
Hosting your websend .php files on an Apache server is even easier. ;)
Is there a best practice to send multi-line text to the minecraft server? If I send each line individually with writeOutputToPlayer() it seems cumbersome to me. I am not talking about a text that is longer than one line. I am talking about text that has intended line breaks in them and those should be displayed as such on the user's screen. Same goes for print('/Output/PrintToPlayer:.....');
Did you know that you could also host your website on GitHub? You can find details about this feature (which is called “GitHub Pages”) at https://help.github.com/categories/20/articles. I would really like to have it there because IMHO URLs like
http://waterflames.github.io/websend
are a lot easier to remember than URLs likehttp://dl.dropboxusercontent.com/u/35774053/Websend/index.html
.@LanToaster
Jesus, thank you so much. I've spent the past hour trying to figure out why it behaved like that.
@modzmarvin
Hello modzmarvin,
WebSend php work bilaterally, that means you need 2 different files. Its like people talk to eachother. WebSend is only for communication plugin between PHP and MCBukkit.
To get all this to work, you need variables (Thats simple, do not get you confused, its like word substitution, because all "people" does not say same things and its nonsenses to wrote all words in php files and make them to do some commands, thats why you need VARIABLE $post... Yeah, thats the variable. You can name your variable as you like. I use $message, its easier to understand what variable that is. $post is more like e-mailing to someone!
1. First file _POST["$post"] (That means first "people" say [whatever is in $post] Example: I like to eat cake)
2. Second file _GET["$post"] (That means second "people" hear what first say to him and $post contain all the message what first told, for now, it told: I like to eat cake.)
Variable $post translate it easily to word what firstone told.
Thats not simple to make php code, if i dont know what you need exactly and i dont know even what you have. If you give your php code with password line (PS! Replace password to * marks) and also, post your WebSend config.txt .. then i can help you!
______ www.chmc.era.ee/WebSend - All you need to know about WebSend I'm not always here, but I'll keep an eye on this topic.
Could some one possibly write me something for this part of the eg php code.
$ws->doCommandAsConsole("say hello");
Im trying to turn the "say hello" to a option for a text box and then input the command i want to send. I have tried with a $post but that dosent work. Asked from a php dev but there confused when it coms to the websend adition
@FantzFoXx
Hi FantzFoXx, the problem is in your Websend version.. update it to 2.5.3.
Hi, i have a problem with my websend seed, the plugin write a seed 0. I don't understand why. when i try to connect, my php page says (i make my tests with a basic password) "aaa hashed with seed 0 using sha512 gave hash 1cf7da6ad816af97a23406d66a13004827d7df79271fba1e1366617b680a2625e5000f16c2781339d1184fc988351461891348a43496120be549df0c916020bfFailed to connect. " normaly, the seed is =! of 0 right ? My minecraft server is hosted in omgserv. Does anyone know why i have this problem ? (sorry for my bad english :/ )