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 3, 2013@Simon816
I changed the port to 80 and now I get this error on web: http://pastebin.com/EN07zqd3
I don't know if it even conencts to the server because I see nothing in console this time.
-
View User Profile
-
Send Message
Posted Jun 2, 2013@saxons12
It is likely 1freehosting is blocking incomming traffic on a non web port (4445), try port 80 for example
-
View User Profile
-
Send Message
Posted Jun 2, 2013@Ezriilc
Okay so I got some problems.
I got free php hosting from1freehosting and set up websend on my PC's test server. I made sure that 4445 was open on my PC. And then I tried to run the ExternalTimeSet.php. The client connects but gives an IOException. I have not modified a bit of the code.
Here are the errors: Console: http://pastebin.com/RMjPKYHf web: http://pastebin.com/T4GjYSwi
Would you be able to help me?
Thanks!
Edit: I just realized that KrisGroove has a smilar/same problem.
-
View User Profile
-
Send Message
Posted Jun 2, 2013@Ezriilc
Server: 1.5.2
Plugin: Websend 2.4
Standard plugin configuration.
It's my server.
Script:
-
View User Profile
-
Send Message
Posted Jun 2, 2013@KrisGroove
Some background is needed.
-
View User Profile
-
Send Message
Posted Jun 1, 2013Hello :D I have problem:
Please for help :/
-
View User Profile
-
Send Message
Posted May 31, 2013Are there permission nodes in Websend?
-
View User Profile
-
Send Message
Posted May 25, 2013@Karnekdo
A simpler way, that works without Websend is:
-
View User Profile
-
Send Message
Posted May 25, 2013To check if the server is online just simply do this:
edit connect function in Websend.php:
And then use that in your code:
However there is still a chance for your commands to not get executed if the server is shutting down or it has just started up.
-
View User Profile
-
Send Message
Posted May 25, 2013@saxons12
Rock on, saxons12. We got you! :D
-
View User Profile
-
Send Message
Posted May 24, 2013Hello,
I am going the try to set up this plugin one more time. Can I still get help here?
-
View User Profile
-
Send Message
Posted May 14, 2013@Waterflames
Re: You looking into WSEvents breaking on player events...
Any hope for a WSEvents fix? Now that I know how it works, I sure would love to be able to use it! :)
-
View User Profile
-
Send Message
Posted May 14, 2013@Kopertje
Although Websend may become part of your solution, it sounds like this isn't really a Websend topic. Also, you're talking about a major programming project, and you may find such an undertaking to be quite challenging for a novice. Some study for years to get that good. However, I love your can-do spirit.
Your first step is to learn PHP, HTML/CSS and Javascript well, and familiarize yourself with modern standards of web programming and security. There are many tutorials and how-to's out there, and of course there's PHP.net.
I recommend you setup the servers to all run from the same box, or at least from within the same subnet/location for ease of access, and control over security. You'll want the latest LAMP components, and the standard setups of these should be fine.
Then, you may want to begin with some off-the-shelf PHP solutions, like Joomla and/or VirtueMart, to customize or get ideas from.
Good luck, and let me know what else I can do to help.
-
View User Profile
-
Send Message
Posted May 14, 2013Hello,
Iam quite new to Php and i would like to build an webshop on my website to let people buy a VIP account, i use BuyCraft now but i want to make a good looking website that look nice with my website.
Is there anyone who can help me?
-
View User Profile
-
Send Message
Posted May 8, 2013@DJTomek
No problem. Your English is mmm... OK. ;)
On my server, I first check to see if Bukkit is running, by opening a socket on port 25565. Then, I use PHP -> Bukkit to trigger a Bukkit -> PHP response, like a ping. If I get the response I expect, then Bukkit and Websend are running, and other commands should work too.
As for the success/failure of other commands (not "/ws ..."), that's a little harder and depends on what command you send. If it's something that causes an event to fire (one that WSEvents can handle), then you could use WSEvents to trigger a Bukkit -> PHP request to log the event.
Good question! Let me know if this helps.
-
View User Profile
-
Send Message
Posted May 8, 2013@Ezriilc
I'm sorry, describe of my request was poor :)
So, another question, similar to first - how I know, the script, which is situated, for example in script.php. There are some commands, which are send on opening this page. How I know, these commands was successful?
In my script are functions log to file and database and it would be nice, if I know the commands are succesfuly sended (for example server can be offline or connection isn't possible) and I can write it to log (failed or successful)
Something like this:
I'm sorry for eventual mistakes in my text, I'm not from English speaking country :)
-
View User Profile
-
Send Message
Posted May 7, 2013@DJTomek
Without knowing your setup, and assuming that you're referring to chron jobs on a typical LAMP web server, that fire periodically without a web hit...
The short answer is "no", there's no PHP code to get a chron result that I know of, unless you were to build something into the script being called by the chron job.
For instance, you could write the script to send you an email containing the required data, or log it to a file.
I hope this helps. :)
-
View User Profile
-
Send Message
Posted May 7, 2013I want to add some commands to CRON, how I know the connection was successful? Is there any "if" in PHP to know this?
-
View User Profile
-
Send Message
Posted May 1, 2013I've set this up and it works great!
-
View User Profile
-
Send Message
Posted Apr 29, 2013@reidjako