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 23, 2013@Ezriilc
I was too fast, already did this :/ (oups) No, i don't have anything when websend not working. I'm not using wsevent Yes i mean websend 2.4. I'll try to use ur code and say what's the error !
-
View User Profile
-
Send Message
Posted Apr 23, 2013Waterflames, is there any way you could improve the error handling of Websend.php? It seems that if anything in there fails, we're left in the dark. I may be wrong about that.
@Biloutboy
Oh, you said you have Websend 1.4. I'm sure you mean Websend 2.4 and WSEvents 1.4, yes?
I have an idea for a test. Add and exit() to the beginning of line 45 in Websend.php, like so:
exit($b);// fwrite( $this->stream, strrev( pack( "C", $b ) ) );It should tell us if/when a command is being sent. You'll need to watch the web page to see the exit() output, and the rest will error out, but it may tell us something.
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Biloutboy
So, even with Websend debug ON, you're still not getting anything in the console?
I think PHP is not sending the command ( $ws->connect("password"); ). Can you confirm if it is?
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Biloutboy
Don't delete your post, just edit it to remove the password.
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Ezriilc
I meant that you help everybody with websend problems, it's very rare to find someone like you, who try to help and take the time for it. I'll delete my post with the password. And thanks for your congrats, i was born with a computer in my hands :)
No i just restart craftbukkit and that work fine again for 2 or 3 hours. When Websend fails, it is not saying nothing, like websend is not longer listenning after the website ...
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Biloutboy
You're welcome! Please pass it on and help others whenever you can.
Re: "after-sell service of websend": I'm not sure what you mean, but I'm not associated with Websend or it's creator, Waterflames. I'm just a tech-head who loves Minecraft, Bukkit, Websend, and helping.
I'm in my 40's (years old), but I still feel 16. It's pretty impressive that you're doing all this yourself. Congrats!
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Ezriilc
Oups didn't saw :p
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Biloutboy
OK! Excellent detail. Any phrase you don't understand, quote it and I'll reword it.
Re: Websend error on reload/disable: Not a problem, just restart instead of reload. Bukkit and many plugins don't like being reloaded. ALWAYS shutdown Bukkit ("stop") and then start it again.
Are you saying that you must shut off and restart your whole server box to fix it?
That Websend debug output was when it worked correctly? What does debug say when it fails?
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Biloutboy
FYI: I recommend you don't post any passwords or other private info here!
I'm checking...
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Biloutboy
:O I didn't know you were French! Now I feel bad. I'm sorry! I know just a little French, but I will help you all I can.
Again, I'm sorry for being so rude. Your English is so good, that I honestly could not tell you were French. Let's get you fixed up.
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Ezriilc
Sorry about that, but i'm not english, i didn't understand your humor because it was too complicated for a french guy :p But you didn't answer to me, do you think it's about my CB version ? And thanks for caring of my problems :)
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Biloutboy
I'm not angry. That was called a "joke" which is used ostensibly to convey humor by way of an anecdotal story. The story may have some truth and relevance, but many times, the superficial message isn't the intended one. It is that hidden quality that the humor frequently stems from, so they say.
So, it looks I've failed to help you so far; sorry about that. Please let me know if you change your mind.
-
View User Profile
-
Send Message
Posted Apr 23, 2013@Ezriilc
I didn't understand what you wanted to mean, but i'm sure you were very angry. So it's about my bukkit version right ?
-
View User Profile
-
Send Message
Posted Apr 22, 2013@Biloutboy
[Note to self]
Self,
Zen really did well this time, so how about you go easy on him and just let him have it for once (remember what our therapist said). I know how you feel (take a breath...), but please do the right thing and delete the others' before posting so we don't have... another incident. Oh, yea; almost forgot. The pharmacy called and said they can't fill our script 'til next week, but I've got an uber-brilliant plan. You'll be fine as wine, if you just keep the chicken filler foil commandos from wheezing juice into those sensitive hamsters.
SANDWICH! :|
-
View User Profile
-
Send Message
Posted Apr 22, 2013@Ezriilc
I'm running my server on Debian server 6.0.7 with java 6, php5(i think), apache2, Craftbukkit version : 1.5.1-R2.0. My bukit server and my http server are running on the same computer, that means i connect whith localhost (no ports are bloqued). Like i said, i can send somands to console with websend 2 hours after starting my server, else, websend is not doing anything ... I think it's due to CB version : incompatibility between the plugin in 1.4.7 and my server 1.5.1 :/
-
View User Profile
-
Send Message
Posted Apr 22, 2013@Biloutboy
Here's the fix you need! << LINK
-
View User Profile
-
Send Message
Posted Apr 22, 2013@Ezriilc
I have the same problem with websend, he is nicely working few hours and then, when i go on any pages of my website, it isn't doing the command ... Need some help ! Thanks.
-
View User Profile
-
Send Message
Posted Apr 17, 2013@Schagen
You're likely going to need to post MUCH more detail. What exact versions of everything are you running? What's the topology between your Bukkit and HTTP servers?
I've been running Bukkit with Websend 24-hours a day for literally months at a time, and never once has it failed as you describe, so there may be something specific about your setup that is causing it.
If there are no errors, how do you know Websend is no longer working? I.e., what exactly are you trying to do, what happens, and how is that different than what you expected?
-
View User Profile
-
Send Message
Posted Apr 17, 2013Websend ist working nice for 1 to 2 hours, but after a few hours websend stops working until a restart. There are no errors in console.
-
View User Profile
-
Send Message
Posted Apr 15, 2013@nxtguy
If you are going to use PHP -> Bukkit only, you need: - The WEBLISTENER_ACTIVE parameter set to true in your websend config - The Websend server port forwarded on the bukkit side. You also need to make sure there aren't any firewalls blocking the port on neither side.