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 Apr 9, 2012@FrostEnergy
If source code shows up, that means your script isn't executed by php. Check file extension and <?php ?> tags.
If "No (enough) data provided." shows up, that either means you didn't provide command arguments (/ws argument1 arg2) or $_POST['authKey'] is empty. Have you setup websend correctly? (configuration file.)
-
View User Profile
-
Send Message
Posted Apr 8, 2012Could anyone here help me to pull information from Bukkit > php?. I am currently trying to display maxMemory and availableMemory online, but the only way i am getting anything is in the console when typing /ws. But that also shows all of the php's source code.
Also when using the stock minecraft.php and supplying my password, all that displays is No (enough) data provided.; anyone know what I am doing wrong? :/
p.s. I have php > bukkit working really well ^_^ I am enjoying it, But I would really like to figure out how to pull information from bukkit to php.
I am using bukkit #2150, and Websend 1.5.1, my web server and game server are two separate machines in the same LAN.
My current code is here: http://frostmournemc.com/minecraft/adminpanel/adminPanel.txt I am learning how to use PHP as I go, So if things look noobish.. I'm just learning right now :/
-
View User Profile
-
Send Message
Posted Apr 8, 2012@macer7
You don't need him to post the source in order to get it...
-
View User Profile
-
Send Message
Posted Apr 7, 2012@macer7
Perhaps in a future release when I decide to stop developing Websend.
-
View User Profile
-
Send Message
Posted Apr 7, 2012Heyy, that's a nice plugin you have there! How about publishing sources :D?
-
View User Profile
-
Send Message
Posted Apr 7, 2012@GlabbichRulz I just noticed that you wrote the wrong ip in your php. It should be an IP. Not an address.
@shutka You could just read the change log: http://dev.bukkit.org/server-mods/websend/files/24-websend-2-0-alpha/
BTW: this is not Websend 2.0. Its the alpha version.
-
View User Profile
-
Send Message
Posted Apr 7, 2012@Waterflames
This just checks my local IP, but i have an external Host. I have found some Info about PHP: http://server33.000webhost.com/phpinfo.php, socket Support IS enabled.
-
View User Profile
-
Send Message
Posted Apr 7, 2012@shutka
No
@GlabbichRulz
I don't know neither. This might help: http://www.canyouseeme.org/
-
View User Profile
-
Send Message
Posted Apr 7, 2012@Waterflames
My Gameserver allows all Ports, my Webhost is http://000webhost.com/ , I think they allow php sockets, but iam noct sure..
-
View User Profile
-
Send Message
Posted Apr 7, 2012@GlabbichRulz
Your minecraft server has to have port 4445 forwarded, and your webhost has to have php sockets allowed.
-
View User Profile
-
Send Message
Posted Apr 7, 2012@Waterflames
Do you mean the Minecraft Server or the Webhost?
The Server Log has no Error.
The PHP Error: Warning: socket_connect() [function.socket-connect]: unable to connect [110]: Connection timed out in /home/a3219409/public_html/Freischaltung/timeday.php on line 7
error: could not connect to host
-
View User Profile
-
Send Message
Posted Apr 7, 2012@GlabbichRulz
Is the port (4445) properly forwarded on server side? Maybe your host has blocked access to this port? (Some hosts do this to prevent viruses, and limit network IO)
-
View User Profile
-
Send Message
Posted Apr 7, 2012No, 1.1.5
-
View User Profile
-
Send Message
Posted Apr 7, 2012@GlabbichRulz
Are you using the Websend 2.0 Alpha?
BTW: for pasting code you can use http://pastie.org/ That saves space.
-
View User Profile
-
Send Message
Posted Apr 7, 2012@Waterflames
-
View User Profile
-
Send Message
Posted Apr 7, 2012@GlabbichRulz
If it delays, there is probably something wrong with the connection.
I can't help you if you don't show me the source code.
-
View User Profile
-
Send Message
Posted Apr 7, 2012Hi, I have inserted the password and the IP, but it never stops loading... Link Can you help me, do I have to wirte any "?pw=xxx" behind the link? Thanks
-
View User Profile
-
Send Message
Posted Apr 6, 2012@shutka
You surely can stay with 1.5.1 for now, but future releases will contain only the new system so you'll have to switch sooner or later. I suggest starting working on a modified version of your php's when the beta is released.
-
View User Profile
-
Send Message
Posted Apr 6, 2012@shutka Yes.
@ryanwagner At first I was going to call it a beta, but since there is way more to be done other than bug testing I decided to call it an alpha.
If it really bothers you, then just think of it like a developers preview.
-
View User Profile
-
Send Message
Posted Apr 6, 2012Please don't take what I am about to say as being mean. I only want to help, and for what it counts I like the plugin.
Websend 2.0 ALPHA should be named Websend 2.0 BETA
An Alpha is only available to those working on the project. Beta is when you extend the testing to people that are not working on the project.