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 Jun 23, 2014I just Updated to Websend 2.5.3
After I changed my PHP file, it doesnt decode the json string anymore.
A test with the Included minecraft.php doesnt work either.
Both give the ErrorMessage: "[Websend] Error:Failed to retrieve JSON data!"
The Strange thing is, that when I call an Websend command from the Console it doesnt loose the Json string.
Can someone help me?
Edit: I Figured it out. There seems some Problems with UTF-8 encoding.
I solved it with this in my "minecraft.php": $json = json_decode(utf8_encode($_POST["jsonData"]));
-
View User Profile
-
Send Message
Posted Jun 16, 2014problem resolved
i have add /buy in game only when the have money the transaction will be used
-
View User Profile
-
Send Message
Posted Jun 15, 2014@remcov1
Sorry, but thatkind php script cant control: if $many == $itemmany Becase, there isnt itemmany and there isint any variable atall!
This script should look like this: <?php include_once 'Websend.php';
$ws = new Websend("*"); $ws->password = "("*");";
$ammount = $_GET['ammount']; $money = $_GET['money']; $name = $_GET['name']; $item = $_GET['item']; $itemprice = $_GET['itemitemprice'];
?>
-
View User Profile
-
Send Message
Posted Jun 15, 2014i work on a online shop with items and i use in game money but when the buy something from 500 dollar and the have no money the can buy it what can i do ?
script:
<?php include_once 'Websend.php';
$ws = new Websend("***"); $ws->password = "("***");";
if($ws->connect()){ $ws->doCommandAsConsole("eco take ".$_GET['name']." ".$_GET['many'].""); $ws->doCommandAsConsole("give ".$_GET['name']." ".$_GET['item']." ".$_GET['many'].""); $ws->disconnect(); echo "thx"; }else{ echo "Failed to connect."; } ?>
-
View User Profile
-
Send Message
Posted Jun 4, 2014@KaareZ
Your problem get started in plugin folder WEBSEND, there is config.txt Set password same as in test.php file (WebsendPasswordDEMO)
WEBPAGE: http://chmc.era.ee/WebSend and READ MANUALS!!!!
@Sumoh
That error is caused by incomplete suggestions. If you didnt fill all message suggested part, then there is not enaugh inputs for php code!
You can only use www.fortumo.com webpage to test, if your server is capable to connect speciffic port! That means, if you test it, then you have to enter IP and PORT:
READ ON WEBPAGE: http://chmc.era.ee/WebSend
UPDATE!: All info is on http://chmc.era.ee/WebSend Now you can enter your server IP and PORT on TEST PAGE and test your server configuration!
-
View User Profile
-
Send Message
Posted Jun 1, 2014@KaareZ
I'm having the exact same probably. PHP seems to throw this error unpack(): Type C: not enough input, need 1, have 0 whenever it happens.
-
View User Profile
-
Send Message
Posted Jun 1, 2014@ThomasRaud
With debug enabled I get this:
01.06 13:09:23 [Server] INFO Waiting for client. 01.06 13:09:23 [Server] INFO Closing connection with client. 01.06 13:09:23 [Server] INFO Client failed to authenticate! Disconnecting. 01.06 13:09:23 [Server] INFO First packet is authentication request packet. 01.06 13:09:23 [Server] INFO Trying to read first byte... 01.06 13:09:23 [Server] INFO Client is trusted. 01.06 13:09:23 [Server] INFO Client connected.
-
View User Profile
-
Send Message
Posted Jun 1, 2014about half of the times when I run ExternalTimeSet.php it fails
Im getting this error from the console:
01.06 12:23:31 [Server] INFO Client failed to authenticate! Disconnecting.
And this error from the web:
lol123 hashed with seed 3606617952 using sha512 gave hash cb25b57ff81ff985c53e7591f5afec69ab2488b1ab881dcd7372af7de12f095ec5ab8c9738d7c96028b3bdbb33fe9f8553ce9e32811fb148a1014f0d9beeb84fFailed to connect.
Any Ideas why it fails so often?
@KaareZ
@ThomasRaud
Help please
-
View User Profile
-
Send Message
Posted Jun 1, 2014about half of the times when I run ExternalTimeSet.php it fails
Im getting this error from the console:
01.06 12:23:31 [Server] INFO Client failed to authenticate! Disconnecting.
And this error from the web:
lol123 hashed with seed 3606617952 using sha512 gave hash cb25b57ff81ff985c53e7591f5afec69ab2488b1ab881dcd7372af7de12f095ec5ab8c9738d7c96028b3bdbb33fe9f8553ce9e32811fb148a1014f0d9beeb84fFailed to connect.
Any Ideas why it fails so often?
-
View User Profile
-
Send Message
Posted Jun 1, 2014Will this Plugin work with 000Webhost?
-
View User Profile
-
Send Message
Posted May 31, 2014@Ceees2
I've got to jump on board with this one too.
Great thanks to Waterflames, Colbydude, jacklink01 and anyone else involved, for the long-term commitment you've demonstrated by keeping Websend going for so long now.
8)
-
View User Profile
-
Send Message
Posted May 31, 2014Thank you for still maintaining this plugin!
-
View User Profile
-
Send Message
Posted May 25, 2014I get hundreds of e-mail of same guestion!
To avoid this, i made TEST script!
http://chmc.era.ee/WebSend/
Its simple, you need www.fortumo.com account and read the manual in webpage!
-
View User Profile
-
Send Message
Posted May 10, 2014@GodsDead
You can if you find a Bukkit plugin that triggers commands on redstone signal.
-
View User Profile
-
Send Message
Posted May 7, 2014Could you use this with Levers/buttons? So when pressed sends information to a web server?
-
View User Profile
-
Send Message
Posted Apr 27, 2014Hello, there is video, how to make WEBPAGE and GAMESERVER connection for SMS payment!
https://www.youtube.com/watch?v=1pMzQorT1KM&feature=youtu.be
-
View User Profile
-
Send Message
Posted Apr 23, 2014I don't get this correctly installed.. Can someone help me?
Soo yeah i please contact me!
-
View User Profile
-
Send Message
Posted Apr 14, 2014@SomewhatDisoriented
It will be in the next release.
-
View User Profile
-
Send Message
Posted Apr 13, 2014all of a sudden i'm getting this now: "Cannot execute command 'stop': command does not exist."
for all commands
-
View User Profile
-
Send Message
Posted Apr 8, 2014When can we expect to see a player's UUID in the JSON data string? It feels like this could come in handy with the upcoming changes regarding usernames/UUIDs.