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 Jan 21, 2013@prattcmp
What error do you get? Copy and paste the whole thing so we can see.
-
View User Profile
-
Send Message
Posted Jan 21, 2013I can't get this Websend to work.
$in_game=$_POST["in game"];
include_once 'Websend.php';
$ws = new Websend(".*.11.*", "29"); $ws->connect("*"); $ws->doCommandAsConsole("pex user $in_game group set Member"); $ws->disconnect();
What am I doing wrong?
-
View User Profile
-
Send Message
Posted Jan 16, 2013Please, check this thread: http://dev.bukkit.org/server-mods/websend/forum/bugs/47620-bukkit-php-delay/
Thanks.
-
View User Profile
-
Send Message
Posted Jan 11, 2013@Ezriilc
The problem is that I use RemoteBukkit to see the console because it's not possible to set a minecraft server into the runlevels using screen or byobu-screen. RemoteBukkit shows the error messages only if there is an [INFO], [WARNING] or [SEVERE] in front. So I'm able to see the error messages of bukkitbackup because it does that. Also the server is not running as root of course :)
EDIT: Sorry, this was my mistake. When I posted the comment the plugin had a problem with another server for testing running on that port. Now that I had much to do with school I didn't realize that everything works fine except that day. So sorry ... :)
-
View User Profile
-
Send Message
Posted Jan 8, 2013@UbuntuFreak
No. Not without you posting the entire error here, of course. :) I'm completely kidding. If you post the whole error message, someone is likely to be able to help.
A Linux user (usually savvy) that doesn't know to post the entire error without prompting? Hmmm... (also kidding.)
I'll help if I can, hit us with the goods.
-
View User Profile
-
Send Message
Posted Jan 8, 2013The plugin doesn't work for me. I always get:
[Websend] An error occured while trying to do a bukkit -> php connection. (POST)
Is it possible to fix that? That would be really nice because I need the plugin Thanks :)
-
View User Profile
-
Send Message
Posted Jan 2, 2013@teenylol
You're very welcome of course.
It sounds like you don't need to do anything at all, unless you need the special features of Websend's plugin output capturing.
Good luck.
-
View User Profile
-
Send Message
Posted Jan 2, 2013@Ezriilc Thanks I'm gonna change my Bukkit Version and everythings right?
-
View User Profile
-
Send Message
Posted Dec 31, 2012Hi, I have a similar problem like Pr07o7yp3 and DreamCT:
After a couple requests and connections (PHP -> Bukkit), especially when there's a lot of (simultaneous) activity, Websend becomes more and more unresponsive until it completely freezes every request. This is very annoying, because website users wait and wait and admins on the server don't notice anything of it.
As far as I'm concerned, nothing shows up in console that could be related to it. At least no obvious lines that contain "Websend". Due to privacy and filesize limitations I cannot provide the full log.
How many connections/commands/requests can Websend handle at the same time? Is there going to be a stability update?
-
View User Profile
-
Send Message
Posted Dec 30, 2012@teenylol
I don't see any information to suggest that Spigot contains the modifications required to use Websend's plugin output capturing option. As such, it's not an error but expected behavior.
Is your goal to use the plugin output capturing option? If not, then you don't have any problem. If so, then you'll need a version of Bukkit that includes the necessary modifications. In which case, a better question might be to ask what modifications are necessary to make use of that option, but without knowing your goal, there's no way to tell.
-
View User Profile
-
Send Message
Posted Dec 30, 2012Hello, i'm using Spigot Build 365 (MC 1.4.6) and i'm getting this error: [Websend] Default bukkit detected, plugin output capturing may not function properly. Can some help me please ?
-
View User Profile
-
Send Message
Posted Dec 19, 2012@deleted_9024622
What is this /sync you speak of?
(excuse my noob-ness)
-
View User Profile
-
Send Message
Posted Dec 10, 2012Hi,
I really like this plugin, There is only one thing.. When someone (Ingame) do: /sync <siteusername> <sitepassword> is there in anyway possible to make an mysql connection so they sync there ingame account with their site username...?
- Pascal
-
View User Profile
-
Send Message
Posted Dec 7, 2012Is there any suggestion how can i make the player go out of the creative after 30 days beacause i gave the user acces to /gm c for 30 days but after 30 days he is still in creative and can still get items if he hasnt changed to /gm s before 30 days :/
-
View User Profile
-
Send Message
Posted Dec 3, 2012After restart the server PHP -> Bukkit works again.
I don't know where is the problem...
This is error logs of WebSend in the last few days. http://pastebin.com/sc2EkxBD
-
View User Profile
-
Send Message
Posted Dec 3, 2012Sorry, I don't have errors in the console. It seems PHP doesn't send a command to the server.
The page is load about minute and doCommandAsConsole returns false.
-
View User Profile
-
Send Message
Posted Dec 1, 2012@Waterflames
I have the same problem as Pr0.
The new version causes commands to take a long time to return an output, even when the php script is not at all taxing:
print ("/Output/PrintToPlayer:&aUnknown command.;");
takes up to 10 or 15 seconds sometimes, and other times it returns right away, it seems to have little to no correlation with lag on the server or TPS.
-
View User Profile
-
Send Message
Posted Nov 28, 2012@Pr07o7yp3
If you send me the php file and the bukkit log, ill take a look at it. For your second question, this is pretty hard to do. I currently have a system like it in place but it needs updating and it doesnt always work.
-
View User Profile
-
Send Message
Posted Nov 28, 2012@Waterflames
Sorry, I don't have logs. But I'll do.
The command is executing but sometime not. My users told me that the page stars load long time.
Also, have I to use $ws->doCommandAsConsole() with if opperator like that: if ($ws->doCommandAsConsole())
Does this check if the command was successfully performed?
And one more question. It's feature. Can you add some argument to doCommandAsConsole method that to return the answer of bukkit. I mean: $answer = $ws->doCommandAsConsole("lag", true); echo $answer;
and I get the lag of the server for example?
-
View User Profile
-
Send Message
Posted Nov 27, 2012@cookcraft
Um... whatever. You asked what I fixed, so I told you.
If you don't understand basic PHP syntax, then you shouldn't be offering advice on it. You may end up giving wrong information that could cause problems for others.