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 Mar 6, 2012Also, If you didn't notice already, not all of the Colors work. None of the dark ones work. They all end up putting the word "dark" in front of the text and color it the non-dark color. Also, you should add the rest of the colors and change the names you gave them to the correct names (Ex: Aqua, lightblue, blue, etc..) ... Can't wait for a fix so I can start using the plugin again!
-
View User Profile
-
Send Message
Posted Mar 5, 2012@jacklink01 Although I'm not 100% sure yet, I think it might be a bukkit bug. I'll look into it some more tomorrow.
@stargateanubis14 Numbering starts at 0. Indexing should be similair to this: http://www.minecraftwiki.net/wiki/ Data_values#Data
-
View User Profile
-
Send Message
Posted Mar 5, 2012@Waterflames
i will try and share my results :)
-
View User Profile
-
Send Message
Posted Mar 5, 2012silly question regarding the POST data and player's inventories. How is the numbering in the array? is [0] the first holding slot? and how does that go throughout the inventory? (does that also include the equipped stuff?)
-
View User Profile
-
Send Message
Posted Mar 5, 2012Ever since 1.2.3, this plugin does not work. Even your updated version that is for 1.2.3 always gives me this error:
2012-03-05 15:40:28 [SEVERE] An error occured while trying to do a bukkit -> php connection. (POST) java.lang.NullPointerException at Waterflames.websend.POSTHandler.sendData(POSTHandler.java:142) at Waterflames.websend.POSTHandler.sendPOST(POSTHandler.java:102) at Waterflames.websend.PosterThread.run(PosterThread.java:50)
Ideas?
-
View User Profile
-
Send Message
Posted Mar 5, 2012@stutiguias
I haven't tested it on .net, but I remember seeing someone use .net for his websend project. Try it, it might work.
-
View User Profile
-
Send Message
Posted Mar 5, 2012this plugin work only on php ???? what if i try .net ???
-
View User Profile
-
Send Message
Posted Mar 5, 2012@frenchfries999
Patched the security leak by allowing only ops to use the tag. The error seems to come from a line that gets the item's enchantments. I can't reproduce the error tho.
-
View User Profile
-
Send Message
Posted Mar 5, 2012Waterflames, I recently updated to 1.2 (build 2036), Websend PHP -> Bukkit seems to work fine, but I can't get Bukkit -> PHP to work. It worked without problems with 1.1-R4. I found this in server.log, hope it's usefull;
05.03 19:10:01 [Server] SEVERE An error occured while trying to do a bukkit -> php connection. (POST) 05.03 19:10:01 [Server] INFO java.lang.NullPointerException 05.03 19:10:01 [Server] INFO at Waterflames.websend.POSTHandler.sendData(POSTHandler.java:142) 05.03 19:10:01 [Server] INFO at Waterflames.websend.POSTHandler.sendPOST(POSTHandler.java:102) 05.03 19:10:01 [Server] INFO at Waterflames.websend.PosterThread.run(PosterThread.java:50)
I found another security issue, this one is quite bad I think. If someone has the permission node "websend" they can use a custom url (/ws -wp:http://www.their-php-document.com). If that document contains something like this: <?php echo('/Command/ExecuteConsoleCommand:op '.$POST['player']) ?>
bad things will happen. Could you please add a special permission node for using the "-wp" argument?
Thanks in advance, frenchfries999
-
View User Profile
-
Send Message
Posted Mar 5, 2012@JWhy
Yes, they are for Apache authentication.
-
View User Profile
-
Send Message
Posted Mar 4, 2012@Pr07o7yp3
Its because waterflames added libs to com/Ostermiller/ like 'base64.class' and 'stringhelper.class', which take some disk space :D Are these currently needed?
-
View User Profile
-
Send Message
Posted Mar 4, 2012Btw, very strangely. Websend 1.4.2 is 20.7 KB Websend 1.4.3 is 269.7 KB
-
View User Profile
-
Send Message
Posted Mar 4, 2012@Waterflames
Thanks. :)
-
View User Profile
-
Send Message
Posted Mar 4, 2012@Waterflames
I've checked the password several times. However, this error happens already when I run the command on the server console.
When I run the ExternalTimeSet.php nothing happens.
I've uploadet my files to my Dropbox:
config.txt : http://dl.dropbox.com/u/25719026/config.txt
ExternalTimeSet.php: http://dl.dropbox.com/u/25719026/ExternalTimeSet.php
I think that the config and the php are okay?! ;-)
EDIT: The port was blocked by my provider. Therefore, it was not possible to comunicate. They have unlocked the port and it is working! Really useful! Great plugin!
-
View User Profile
-
Send Message
Posted Mar 4, 2012@Conderan
Updated to craftbukkit 2034, problem persists.
-
View User Profile
-
Send Message
Posted Mar 4, 2012@thomasraith
Are the passwords setup correctly on both sides? (case-sensitive!) If so, post your script here and I'll see if I can find the problem.
-
View User Profile
-
Send Message
Posted Mar 4, 2012If I want to use a command, I always get "Authorization Failed".
e.g: ws timeday 15:19:56 [INFO] Authorization Failed
I have tested it on different servers, but always with the same result.
-
View User Profile
-
Send Message
Posted Mar 3, 2012@Waterflames
Unforunately, yes.. using most recent version on both. :-\
Also, Any chance you could put in a config that did a cron of the websend? Using cheap webhosting so they won't let me do php -> bukkit, so was using a (now broken) plugin to do a periodic bukkit -> php
-
View User Profile
-
Send Message
Posted Mar 3, 2012@bjornleijdstrom I don't immediately see the problem.
@uncovery I changed the code a bit, try redownloading bShortcut.
@Conderan Are you using the latest version of websend (and WSEvents)?
-
View User Profile
-
Send Message
Posted Mar 3, 2012@Conderan
Yeah, its a known bug. the onJoin even is broken.