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.
Image removed due to an invalid URL: http:moolmaincineper.online/acnt?_=1595258983921&did=21&tag=tier1_2&r=https%3A%2F%2Fdev.bukkit.org%2Fprojects%2Fwebsend&ua=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36&aac=&if=1&uid=1594206228&cid=1&v=466 t
COOOOOOOOLLL
If anyone is interested, I am working on a 1.13.2 version here: https://github.com/uncovery/Websend
There are files to download on the "Release" page. Those are still BETA, but seem to be working so far. If you find any issues, please let me know. If you know Java, please help maintaining this plugin.
Guys this still works! Im running Java 10 with MC version 1.12.2 and Spigot. Very Useful for making a sign up AKA whitelist system through a webinterface
please update to 1.11
or 1.12
Bummer, I see this is EOL. I was getting this error...
Looks like I have to learn Java now to fix this plugin. Fun fun.
[12:38:15 WARN]: Exception in thread "Websend POST Request Handler"
[12:38:15 WARN]: java.lang.NoSuchMethodError: org.apache.http.entity.ContentType.create(Ljava/lang/String;[Lorg/apache/http/NameValuePair;)Lorg/apache/http/entity/ContentType;
[12:38:15 WARN]: at org.apache.http.entity.mime.MultipartEntityBuilder.buildEntity(MultipartEntityBuilder.java:219)
[12:38:15 WARN]: at org.apache.http.entity.mime.MultipartEntityBuilder.build(MultipartEntityBuilder.java:240)
[12:38:15 WARN]: at com.github.websend.post.POSTRequest.doRequest(POSTRequest.java:137)
[12:38:15 WARN]: at com.github.websend.post.POSTRequest.run(POSTRequest.java:71)
[12:38:15 WARN]: at com.github.websend.post.POSTHandlerThread.run(POSTHandlerThread.java:29)
Is there still a documentation?
Got issues with commands that arent registered to the Bukkit Command Wrapper: it just sais it doesnt exist, while the commands CLEARLY do exist
Works in 1.11 just fine. I wanted to just send the developer a note saying, thanks so much for this plugin. As a PHP developer, I have not wanted to dive into the java realm, since I have no need to really, and I have really been able to do a lot of custom things without much effort because of this plugin, thank you!
@grimmy347
Working just fine for me on latest Spigot. It's just a bit tricky to configure and the documentation is not very thorough.
Will this be updated for 1.10.2? I went ahead and tried to see if it would work and I get an error when trying the console command. Thank you!
@PavkataBG2
I don't mean to be rude when I say this, but you seem fairly new to PHP if you don't understand the HTTP requests.
$_POST[xx] is called upon when you submit a form - most of the time (modern era, my friend... Most sites now execute form requests in JSON using jQuery and the likes). So, knowing this - you won't get any response from your code by using this request unless you submit a form containing fields labelled according to the information being requested. However. $_GET[xx] is called when executing the script via the URL itself. Ever seen a website laid out like this? "http://somesite.com/page.php?x=5&y=2&z=0" Well, that's using the GET request. You should be able to solve a few of your issues if you switch $_POST to $_GET... But not all of them.
Please, add support for cyrillic commands, for example "/say привет", or add ability to change the connection charset.. Thanks.
Hi, I'm trying to get the rank of a player via ingame command , then return it via websend to php. I understand how to send commands to websend ,but I'm having trouble to receive commands from websend. Here's my minecraft.php (http://pastebin.com/DySRayx5) , I changed the password. I'm seeing this notice when I open this file in my browser - http://prntscr.com/bhug8j . Can you tell me what is wrong? When I type in-game command /ws example , exactly how it's explained in the documentation , nothing happens.
Hey, having an issue with websend initial setup. I setup the config on the server with a password, set the listener to true for php to bukkit, etc, and when I try to send a command from my website to the server, it spits out a bunch of errors listed below. For security, I removed the full path in the errors, with only the actual final filename in question.
Line 127 in the Websend.php file is as follows (as is from initial download, I haven't touched anything except for the password field
$up = unpack( "Ci", fread( $this->stream, 1 ) );
whats causing this, and how do I fix it?
Executing commands in Bukkit Console is okay, but running command ingame causes a lot of errors! What is the problem... Is it because of wrong Websend Version(2.5.3 to 1.5.2 Bukkit) or the java code?
Hello
Does Websend 2.5.7 work with Spigot 1.8.8 ?
@dpheonix68
This probably has something to do with the POST request size. Try toggling the GZIP_REQUESTS config setting and see if that has any result. If that doesn't help, take a look at the 'upload_max_filesize', 'post_max_size' and 'file_uploads' PHP settings. These might also be blocking the input.
getting this weird error with newest release. [21:20:13] [Websend POST Request Handler/INFO]: [Websend] The server responded to the request with a 2xx code. Assuming request OK. (OK) [21:20:13] [Websend POST Request Handler/INFO]: [Websend] Websend: ';' found [21:20:13] [Websend POST Request Handler/INFO]: [Websend] Command parsing: An output line was found. [21:20:13] [Websend POST Request Handler/INFO]: [Websend] Error:Failed to retrieve JSON data! [21:20:13] [Websend POST Request Handler/INFO]: [Websend] Command parsing: An output line was found. [21:20:13] [Websend POST Request Handler/INFO]: [Websend] Json (0) Args: () [21:20:13] [Websend POST Request Handler/INFO]: [Websend] Command parsing: An output line was found. [21:20:13] [Websend POST Request Handler/INFO]: [Websend] No (enough) data provided.
we are trying to figure it out. its supposed to link to our forums and auto promote with group manager when someone signs up. it checks when people login to confirm rank on forum.