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 Feb 15, 2012@Waterflames
Ok thanks, just noticed one bug, when I trigger the player event, the playerIP post data is like this:
playerIP: [B@3f99c2dc
This is probably happening for other events as well. Do you know why?
-
View User Profile
-
Send Message
Posted Feb 15, 2012@leonhunter
Its sends all the usual player data on all events, except one: preLogin.
Because that is the only event that bukkit provides only a name, no player object. (Link) I could do a workaround by scheduling a delayed task so it searches the players object with the data, a couple of server ticks later when Bukkit should be done logging the player in.
But then you might aswell use the playerJoin event.
-
View User Profile
-
Send Message
Posted Feb 15, 2012@Waterflames
Thanks for updating it (again) really appreciate the time and effort you're putting in. One question: I know WSEvents now sends the playername instead of console, but does that mean it sends the full list of player POST data as well? (Things like player position, held item etc etc)
If it does, great that's perfect! If it doesn't, can you consider throwing that in sometime? (Last request before I'm happy to donate again)
-
View User Profile
-
Send Message
Posted Feb 15, 2012Updated to Websend 1.4.1 and WSEvents 0.2
-
View User Profile
-
Send Message
Posted Feb 15, 2012@jacklink01
I PM'd you
-
View User Profile
-
Send Message
Posted Feb 14, 2012For some reason I am unable to use CommandHelper to make aliases to the /ws commands. I would like to be able to make simple commands for my users. Any possibility of adding compatibility with CommandHelper? Thx
-
View User Profile
-
Send Message
Posted Feb 14, 2012@UbuntuFreak
Nono, I understood what you ment :P My point was, update to a newer permissions plugin and your problem will be solved.
Also, I'll try to get a new version up tomorrow.
-
View User Profile
-
Send Message
Posted Feb 14, 2012Sorry if there was a misunderstanding.
I did not want you to make permissions for each command like ...
/websend giveinfo -> websend.giveinfo in groups/users.yml ... or ...
/websend buy -> websend.buy in the permissiosn file(s).
I only tried to know if there is a version that can be used by anyone :) or a possibility
for PermissionsBukkit 3.X to enable it for any user, because I did not get 'wensend' and
'websend.*' to work with it (mabye the permissions plugin is too old).
I could set the permissions in the scipt, you're right.
If there was a misunderstanding, sorry - my english ist bad - I think.
Another thing I don't want to cause is that you are sitting in front of the pc for hours and hours only for me :D
@LtSich: I am searching too. I can tell you if I find one :)
-
View User Profile
-
Send Message
Posted Feb 14, 2012Very very good plugin ! Thanks a lot.
Did you know any plugin to manage player inventory ? I just find inventorysql. But I am searching on something more easy, I just need to add or remove a specific item from the player inventory.
Thanks :)
Sich
-
View User Profile
-
Send Message
Posted Feb 14, 2012@jacklink01
This will be fixed in the new version.
-
View User Profile
-
Send Message
Posted Feb 14, 2012Does WSEvents only work as the console now? I want to be able to check if the $player is registered when they login to the server, but when I do this $player = "console"
-
View User Profile
-
Send Message
Posted Feb 13, 2012Hello. Please help me, i want to have a place on my website where you can donate and you automatically get VIP on server. But i'm not very good at php so please can you help me or just send me a php file that doesn't that? Thank you.
-
View User Profile
-
Send Message
Posted Feb 13, 2012@jacklink01 Glad to hear you like it!
@Pr07o7yp3 It isn't very difficult to use or setup. Just download the latest websend and Wsevents and run your server. A config file for wsevents will be generated. Edit that file to enable events.
Then, once an event is triggered, websend will do a bukkit->php using the "args" post data to tell your script an event just happened.
-
View User Profile
-
Send Message
Posted Feb 13, 2012ok Ive gotten the Bukkit > PHP > Bukkit stuff working and i have to say, this is my favorite plugin EVER. I have integrated it in with our registration system and It works great! We can check the status of a player's registration, approve or dey them, and the Guests can hit a button at the end of our "Newb Quiz" that automatically checks if they registered and if they are approved, and then promotes them to Member automatically!
If you are ever looking to check out a server with an awesome use of your plugin, come check us out! Mine.Voidteam.Net
-
View User Profile
-
Send Message
Posted Feb 13, 2012Hey i am trying to setup PHP > Bukkit, but I keep getting "error: could not connect to host." I have set all of the following things and tripple checked them on the server and the webhost:
Password set in php and config / IP set in "daytime.php" / WEBLISTENER_ACTIVE=true / 4445 Port Forwarded to the local server IP
Am I forgetting something? We also use the MC Server GUI.. Could this be blocking Websend's ability to open a socket?
-
View User Profile
-
Send Message
Posted Feb 13, 2012I'll be really happy if you post instructions how to works with WSEvents. :)
-
View User Profile
-
Send Message
Posted Feb 13, 2012@UbuntuFreak
I used to support Permissions (but then I took an arrow to the knee?), but I switched to the official bukkit system which is implemented by the other permission systems like PEX.
Since permissions is inactive and this system isn't implemented, it won't work. And I'm not really planning to support deprecated systems :/ After all, the permissions can be done from your script itself. I'll see if I can make the permission optional.
-
View User Profile
-
Send Message
Posted Feb 13, 2012Hi Waterflames.
I hope I don't annoy you but the permissions did *not* work...
I tried:
groups:
nameOfTheGroup:
...
permissions:
- 'websend'
ans
- 'websend.*'
with Permissions 3.1.6 (Yeti?).
Do you know what was wrong or am I too silly?
Even a version without permissions would be ok for me :)
-
View User Profile
-
Send Message
Posted Feb 13, 2012@Waterflames Not intended -> check the Known caveats in the 1.4 file description.
@ferrybig Although you were exaggerating a bit, I'll change it in a coming version.
-
View User Profile
-
Send Message
Posted Feb 13, 2012Your not excuting the commands on the server thread, you know that this is an bad example, in ce whit worlds and so, it could even crash the server, you didn't used the server thread because of the lagg, but it wil cause more lagg (and more memory) if the server needs to clean up the garbage wrong threads use, I dont recommand this for alnnyt server because of this problem. Sending commands wrong another thread could even crash an plugin that touches worlds, because another plugin that uses correcdtly the server thread can unload that world, and so you would gt an nullpointer exception, or the server would crash. At bad cases this even could lead to an blue screen of death if the jvm and the os aren't excepted to handle it, you realy should check out this page(http://wiki.bukkit.org/Scheduler_Programming) for more help about the threading in minecraft, want servers whit this kind of plugins can actually harm the server so bad that sometimes the wholeregion wil get corrupted because of saving. So guys, stop using this plugin until this bad problem is fixed!