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 15, 2013When /reload it crashes It's caused by the plugin itself. Plugin opens a port and you reload its error is that the port is already in use. Pastebin
-
View User Profile
-
Send Message
Posted Jun 13, 2013@MiroPlayer
It's feature which I mean in my comment here.
-
View User Profile
-
Send Message
Posted Jun 12, 2013It would be awesome if there is a third way for talking. php -> bukkit -> php? Reason I need that is because I'm using Essentials and there is money so users can see their money with /balance command. Then just preg_spiltting it in the php. But currently the php just sends a command, runs it, but shows it at the console, so now php doesn't get the result. Other way that I have to use now is just open username.yml files with php. :(
It would be great.
-
View User Profile
-
Send Message
Posted Jun 12, 2013Exist some manual how to use these functions?
$ws->startPluginOutputListening('nameofplugin');
$ws->stopPluginOutputListening('nameofplugin');
If I use it, it throw this error on webpage (4x after startPlugin... and 4x after stopPlugin...)
and this error in console (many times in one second)
Page here isn't enough I think..
Edit: sending commands to server works.
Edit2: after I use startPlugin or stopPlugin doesn't work commands to server too I have to restart a server.
-
View User Profile
-
Send Message
Posted Jun 10, 2013Hi, can you guys tell me if this will be included in the next build? Thanks.
"According to my host, Fragnet:
"When you do the plugin configurations to bind to a specific IP Address, you absolutely must also set the Bind IP Address to match that of your server. These are often set to 0.0.0.0 by default and if left that way, will cause your server to use that port on every IP Address."
Can we add this option so that I can configure the bind IP address? I need to be able to set it to my server's specific IP.
Thanks, this is urgent as my entire server's voting system depends on this plugin."
-
View User Profile
-
Send Message
Posted Jun 7, 2013@saxons12
Executing a command should return a boolean already. I'm not putting the current build out as recommended yet, but here is a download: https://dl.dropboxusercontent.com/u/35774053/Websend.jar
-
View User Profile
-
Send Message
Posted Jun 6, 2013@Waterflames
Okay I will report this to them aswell. Can you share a link to the new jar that you created? Welcome back!
Could you share a script that returns an error to web if the plugin can't be executed on the server side? So it can try again later, making it more stable.
-
View User Profile
-
Send Message
Posted Jun 6, 2013@carlgo11 PHP -> Websend or Websend -> PHP (-> Websend)?
-
View User Profile
-
Send Message
Posted Jun 6, 2013@Madminor
No.
You need to either get a webhost with php installed, or run something like xampp yourself.
-
View User Profile
-
Send Message
Posted Jun 6, 2013@saxons12
The exception is thrown when an unhandled exception occurs during the execution of a Command.
That means that the problem should be in GroupManager v2.0. I changed the code to handle this problem.
-
View User Profile
-
Send Message
Posted Jun 6, 2013is there a way to use this to host php files? Basically i need a plugin which allows PHP hosting I tried webserver /server-mods/webserver but its only HTML, not PHP? Can you tell me how to host php, i want to host coreprotectwebinterface? - thanks
-
View User Profile
-
Send Message
Posted Jun 6, 2013I finally got it working. It was because of the issue of connection between servers. Almost all hosstings block outgoing ports and thus I set up websend on my apache server on the dedicated machine that I am also hosting my mysql server. It is working perfectly atm.
But I sometimes get this error: http://pastebin.com/fbRHYkNj
Edit: Got this error again and the Websend plugin shut off. Can't execute commands anymore. Why isn't this stable?
Also I think websend should record the command executed to the server.log so I can keep track of it. Thank you!
-
View User Profile
-
Send Message
Posted Jun 5, 2013Does /Command/ExecuteBukkitCommand still work?
/Command/ExecuteConsoleCommand works fine for me but when I use /Command/ExecuteBukkitCommand I get this error:
02:42:50 [INFO] [Websend] Websend ERROR: While parsing php output, websend found
02:42:50 [INFO] [Websend] an error on output line /Command/ExecuteBukkitCommand:time day: Invalid command.
-
View User Profile
-
Send Message
Posted Jun 4, 2013According to my host, Fragnet:
"When you do the plugin configurations to bind to a specific IP Address, you absolutely must also set the Bind IP Address to match that of your server. These are often set to 0.0.0.0 by default and if left that way, will cause your server to use that port on every IP Address."
Can we add this option so that I can configure the bind IP address? I need to be able to set it to my server's specific IP.
Thanks, this is urgent as my entire server's voting system depends on this plugin.
-
View User Profile
-
Send Message
Posted Jun 4, 2013@ghac
That's actually a good question, but I find myself wondering why I don't know the answer. I'm not near my own server right now, but I don't think I'm using any permissions with Websend.
Since Websend is used to execute other commands, there hasn't been any need for specific permissions in my setup. All the commands I use have perms nodes already, so that covers it.
Or am I missing some other need for perms in Websend?
-
View User Profile
-
Send Message
Posted Jun 4, 2013Just to have it said, an "IOException" means that, technically, there IS definitely a fault somewhere in the Java code, either in Websend, Bukkit, another plugin, or Java itself.
Websend may very well be causing that error due to some failure elsewhere in the connection - like bad input and/or a bad connection - and in a perfect world, it would tell us what the problem is rather than throw an ugly exception.
However, fancy error handling requires a lot more work and code, so I don't blame anyone for not bothering with it - especially in the constantly moving/shaking world of MC/Bukkit.
-
View User Profile
-
Send Message
Posted Jun 4, 2013@KrisGroove
I didn't mean to leave you out. My responses to saxons12 apply to you as well. :) Let me know if I can help.
-
View User Profile
-
Send Message
Posted Jun 4, 2013@saxons12
I doubt it's your code - the requirements are very simple, but here's mine. It's almost always a problem between the two servers, but in this case I think it may be a bug.
Keep in mind that I'm not using the latest releases. I always make sure everything works together before updating my server. Here's my current setup:
-
View User Profile
-
Send Message
Posted Jun 3, 2013@Ezriilc
I am using this free hosting to only test the plugin. If I could get it working ofcourse I would get proper hosting and run it from there. But without the issue solved I don't want to waste money.
Is it possible that you send me your code that you use? Just a part of it so I can also try that one and see where the problem is originated.
Thanks!
-
View User Profile
-
Send Message
Posted Jun 3, 2013@saxons12
If you've not modified the code, and the servers have a clear pipe between them, then there may be a bug in Websend, but Waterflames is the one who'd know for sure.
I've learned that free and cheap (read GoDaddy) hosts have all kinds of secret limitations that you may not find until you try something like this. I'm not saying it is, but using a free/cheap host is never a great idea unless it's your only option. Quality hosting - even shared - is not expensive.