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 29, 2013@Ezriilc
Well I'm sure if I gave you the login details it could be set up?
-
View User Profile
-
Send Message
Posted Apr 28, 2013Is this a problem?
-
View User Profile
-
Send Message
Posted Apr 27, 2013@Ezriilc
You're right. Well i'm sure about the server side. I checked the port from online port checker. And it seems open. But i don't know anything about php. I opened a free space on 1freehosting.com and uploaded those 2 files there. When I load them, an empty page comes up after a few secs. But I don't know how to get logs from php sites. Could you explain that please?
Ty
-
View User Profile
-
Send Message
Posted Apr 27, 2013@reidjako
Without being at your physical location, there's little that can be done worth paying for, IMO, but I'll help all I can regardless. Here, in PM or elsewhere, just let me know what you prefer.
What's the trouble?
-
View User Profile
-
Send Message
Posted Apr 26, 2013I am after some one to set this up for me I have had 0 success i am willing to pay you.
-
View User Profile
-
Send Message
Posted Apr 26, 2013@saxons12
Many people won't even answer your post(s) if you don't provide all possibly relevant details right away. ;)
Where/who is the PHP/web host in relation to Bukkit/Websend?
What are the IPs and ports for your Web, Bukkit and Websend?
Do you have PHP set to display and/or log errors? If not, you'll need one/other, if so, do they show anything relevant?
-
View User Profile
-
Send Message
Posted Apr 26, 2013@Ezriilc
No. I had this working on a different server, different machine, different host. Not related to the conditions now. Can you see anything wrong?
-
View User Profile
-
Send Message
Posted Apr 26, 2013@saxons12
-
View User Profile
-
Send Message
Posted Apr 26, 2013So here is what i did: ı'm trying to connect php>bukkit and execute commands
Config:
Trusted:
ExternalTimeSet:
I setup the plugin with these settings. Uploaded the 2 files into a php enabled host (in the same folder). And tried to load ExternalTimeSet.php. But nothing happened.
-
View User Profile
-
Send Message
Posted Apr 25, 2013@saxons12
We need some basics to help you.
Any reason why you're not using the standard port?
What kind of connection, PHP > Bukkit or Bukkit > PHP?
What command?
Have you ever had it working? What changed since then?
-
View User Profile
-
Send Message
Posted Apr 25, 2013I set up everything. And I am using port 25585 both in config and in WebSend.php file. I am trying to set the time to day. But it is not working, connectiong, or giving any errors.. Could someone help?
Can't I check the connection some how? With try and catch?
-
View User Profile
-
Send Message
Posted Apr 25, 2013Is there an update coming up? No updates since March seem scary. I am using this plugin very efficiently and its very important for my server.
-
View User Profile
-
Send Message
Posted Apr 24, 2013@Biloutboy
That's great that it's working. Maybe this will help the other person having this problem.
I meant PHP logs which are different from Apache's logs.
-
View User Profile
-
Send Message
Posted Apr 24, 2013@Ezriilc
The bug saw that i was looking after him, he decided to surrend :) I updated on java 7, there's no problem now ... for the moment. And i've no error in apache2 logs about websend. I think it is good for now, i'll let u know if i have other problems. Thanks for your help ! Take a look on my website(i did it myself with php and html) and give me your review (i don't know if it's the good word). Forgot to put my website's url : http:88.160.33.43:81/Index.php
-
View User Profile
-
Send Message
Posted Apr 24, 2013@Biloutboy
Perhaps you scared the bug away! You have the "touch of death". ;)
I don't know Linux well enough to know where Java 7 is, but I'm sure you can figure it out. I recommend you do that immediately. It's very important.
Don't forget about error reporting in PHP. It's essential for trouble-shooting.
I think you're on the right track. Well done so far! You'll learn the problem very soon, I'm sure. Good luck and let me know.
-
View User Profile
-
Send Message
Posted Apr 24, 2013@Ezriilc
Websend is working fine 5 hours ago .... He is trolling me ! So, i will wait after websend fail and i'll try to get an error. Thanks for help.
-
View User Profile
-
Send Message
Posted Apr 24, 2013I'm waiting my server to fail .. Yes, i'm on java 6 :( I intalled java 7 on my debian (it is not officially released) but i don't know how where it is installed, so i can't launch my bukkit with it. I kknow that java is quite bad about security and perfomances. I use the standard ports for bukkit and websend. If one information is missing, let me know and i'll give you !
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Biloutboy
You said Java 6, yes? Can you update it? This may be the problem, but Waterflames would know better than I. Java SUCKS ROYAL BALLS and has HUGE security holes, so updating is pretty important.
What happens when you try to manually send a /ws [command] from the Bukkit console?
If that works - even after PHP > Bukkit has failed - then I'd bet that Websend has stopped responding to hits on it's TCP port... but I can't think why it would do that.
A "packet sniffer" program might tell us more. Are you using the standard ports for Bukkit (25565) and Websend (4445)?
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Biloutboy
Ok. Make sure you've waited until it fails before you test. Otherwise it won't matter.
Do you normally see PHP errors on your web server? ( display_errors = On ? ) If not, do you log errors in PHP? ( log_errors = On ? ) If so, check your log.
If still no error, put "exit('TEST')" in your PHP script just BEFORE "header('location: Index.php');". Don't forget to put Websend.php back to original.
If STILL no error, move the exit() up one line at a time and retest. Eventually, we should get some kind of error in the web output.
Remember: Do NOT fix the problem between tests. We need to make it give an error.
Another question: Are you running PHP as an Apache module?
Since restarting Bukkit fixes the problem, I doubt this is the problem, but I don't know what else to try.
Also, to answer your previous question, I DON'T think it's your Bukkit/Websend combination, because I think I'm running the same setup and it's fine.
This is a tough one!
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Ezriilc
When i try to go on my webpage, that is not writing anything, no erro message, but on th console i have that : [WARNING] [Websend] IOException while communicating to client! Disconnecting.