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.
@RoelandCache
I can't reproduce this error, but since the 2.5.7 release is still under revision I assume you compiled this yourself. It seems that not all libraries were correctly included in the plugin jar. Make sure that all the correct version of all the dependencies is included in the jar. You can also wait for the Bukkit team to approve the release and download a precompiled version.
If you still can't get it to work, feel free to PM me.
Getting this in 2.5.7
Exception in thread "Websend POST Request Handler" [09:46:27 WARN]: java.lang.NoSuchMethodError: org.apache.http.entity.ContentType.create(Ljava/lang/String;[Lorg/apache/http/NameValuePair;)Lorg/apache/http/entity/ContentType; [09:46:27 WARN]: at org.apache.http.entity.mime.MultipartEntityBuilder.buildEntity(MultipartEntityBuilder.java:219) [09:46:27 WARN]: at org.apache.http.entity.mime.MultipartEntityBuilder.build(MultipartEntityBuilder.java:240) [09:46:27 WARN]: at com.github.websend.post.POSTRequest.doRequest(POSTRequest.java:137) [09:46:27 WARN]: at com.github.websend.post.POSTRequest.run(POSTRequest.java:71) [09:46:27 WARN]: at com.github.websend.post.POSTHandlerThread.run(POSTHandlerThread.java:29)
awesome thanks
@RoelandCache
That's because of a Java version mismatch. I'll release a Java 7 version.
Im getting this error on 2.5.6..
Hey guys,
I just released a compatibility update for Bukkit 1.9-R0.1-SNAPSHOT. It is currently under review, but as soon as the bukkit team approves it you can download it. The update does not include any new features, but simply makes Websend run on Craftbukkit and Spigot 1.9.
I can't promise anything but if you have any specific features you would like to see included, feel free to comment here and I'll see what I can do. If the update doesn't work for you, please post your crashlog :)
If you're using Spigot 1.9 -> go to the directory where you have BuildTools.jar and run:
java -jar BuildData/bin/SpecialSource-2.jar map -m CraftBukkit/deprecation-mappings.csrg -i Websend-2.5.5-SNAPSHOT.jar -o Websend-2.5.5-SNAPSHOT-fixed.jar
Then delete the old Websend-2.5.5-SNAPSHOT.jar
It should now work.
But of course it would be nice if @Waterflames updates this to use the new getplayers method.
For now you can use this fix to get it up and running.
I've contacted the developer directly about 1.9 support, so hopefully he will update it soon. Fingers crossed.
@pilvimaa
1.8 PLS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@KyleUnrau2
Yes. It works.
It's just difficult to set up.
Hi guys I want to send some command with a cyrillic text (like say привет) But at finish i see in console somthing like that: ÑÑй пиÑÑка говно епÑа
So how i can fix dat. Thanx
What is the variable for the player / messages? $ws->doCommandAsConsole("say $message"); It did not work ; /
Does this version work for 1.8 Bukkit?
Because when I type /websend it does not say many message... Is this normal
Also when I try to connect to it I have opened all the necessary ports and it does not seem to connect
Warning: fsockopen(): unable to connect to *:4445 (Connection refused) in /Library/WebServer/Documents/hi/Websend.php on line 35 Failed to connect. Warning: fwrite() expects parameter 1 to be resource, boolean given in /Library/WebServer/Documents/hi/Websend.php on line 74
The stars were the IP should be were changed by me for security reasons but it has a normal IP
hoping to get some help here with this, tried to install on a remote server and a local server both leaving this error.
using 2.5.5 and our bukkit server version is 1.7.9 R0.2
(second server i used is 1.8.0 bukkit yet exact same errors showed)
[11-Mar-2015 22:04:11 UTC] PHP Warning: fsockopen(): unable to connect to ...: (Connection timed out) in /home/////Websend.php on line 35
[11-Mar-2015 22:04:11 UTC] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/////Websend.php on line 74
[11-Mar-2015 22:04:11 UTC] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/////Websend.php on line 64
[11-Mar-2015 22:04:11 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/////Websend.php on line 127
[11-Mar-2015 22:04:11 UTC] PHP Warning: unpack(): Type C: not enough input, need 1, have 0 in /home/////Websend.php on line 127
UUID Support ?
Also, would it be Possible to add NBT Data to the Inventory Data send to PHP?
It throws Errors on certain PHP-Bukkit commands on Spigot 1.8
For example the "MVTP" Command from MultiVerse while teleporting to another world.
Calling the Command Ingame or From the Console directly works fine. Only via Websend it throws errors.
Ok, so it seems to all work fine except banners are not properly detected in the inventory. A fix would be highly appreciated, also UUIDs in the userdata would be great!
@uncovery
It seems to work fine for me.
Does anyone have any trouble with the latest version of Websend and Spigot 1.8? It seems to work here on the first test, but would be happy to get a confirmation from someone else.