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 13, 2012Hey, thanks for the update.
The inventory array is currently an array of strings instead of actual arrays. Is that intended?
-
View User Profile
-
Send Message
Posted Feb 13, 2012@leonhunter
Will fix it.
EDIT, note that on preLogin, no player object is available yet. I might be able to work around this, by getting the players name or so. I'll look into it.
-
View User Profile
-
Send Message
Posted Feb 12, 2012@Waterflames
Big Problem: When an event triggers, it triggers as console and not the player that the event originated from.
Example: Player: console Arg0: event Arg1: preLogin
This greatly deceases the usability of the feature overall and means I cant use it for what I needed it for.
-
View User Profile
-
Send Message
Posted Feb 12, 2012@frenchfries999
K.I.S.S Principle Applies. MD5 is "secure enough" for this purpose. Nothing stops a player checking the IP address of the server on the PHP side.
@Waterflames: Thanks, I'll look at it soon.
-
View User Profile
-
Send Message
Posted Feb 12, 2012@leonhunter
A first build of WSEvents is released which allows you to setup player events.
-
View User Profile
-
Send Message
Posted Feb 12, 2012@UbuntuFreak I'm going to rework the permissions EDIT: should be fixed in new version (1.4)
@frenchfries999 That bug will be fixed in the next release. EDIT: fixed in new version (1.4)
The security of the connection isn't really a top-of-the-agenda item right now, but I'll add it to the todo list
-
View User Profile
-
Send Message
Posted Feb 12, 2012Hi Waterflames, I like your plugin, but I don't get it to work for non-OPs.
I wanted to make my own Economy plugin, because I need some features no other good plugin has got.
My problem is: even if every user has the "websend" permission, they don't have access to this command.
my permissions plugin: PermissionsBukkit
-
View User Profile
-
Send Message
Posted Feb 12, 2012Great plugin! You're great waterflames! Love it!
I could only find one "bug", $_POST['playerXP'] returns the XP in the XP bar - ignoring the XP level. If you have level 10 and the bar itself is completly empty, $_POST['playerXP'] will return "0", which is kinda annoying if you want to make stuff based on XP. Maybe an additional $_POST value playerXPlevel?
You use an MD5 hash of the $password, but with the current implementation hackers only need to intercept the hash to gain console acces, which makes it just as safe as sending the password in plain text. An RSA (any private - public key) encryption could fix this, but will also increase the complexity for PHP developers.
-
View User Profile
-
Send Message
Posted Feb 8, 2012@chaseoes
See this.
You will need both types of communication, firstly the second for the querier. The first will be called with the post data.
Copy both to seperate files, and in the php -> bukkit one put the command /Command/ExecuteConsoleCommand:ws queryData;
Then change the arg check in the bukkit -> php one to if($args[0] == "queryData"){
-
View User Profile
-
Send Message
Posted Feb 7, 2012@Waterflames
If it's not too much trouble could you give me an example? Thanks! :D
-
View User Profile
-
Send Message
Posted Feb 6, 2012@chaseoes
In a socket connection? Not implemented yet. However, you can open the socket and send a command which will make websend send Post data to a page like it would normally do.
-
View User Profile
-
Send Message
Posted Feb 6, 2012I'm confused on the POST data (sorry, I'm new to PHP). :P Is it possible to simply query the server and return one of those (e.g. online players) without sending a command or anything first? Could you give an example?
Thanks, great plugin! :)
-
View User Profile
-
Send Message
Posted Feb 5, 2012@leonhunter
1. If I implement real api, I want do it properly so thats gonna have to wait a bit until the command response system works.
2. Working on it.
-
View User Profile
-
Send Message
Posted Feb 5, 2012@Mayney365
First, you need a plugin to handle the button stuff:
Triggercmds
Set it up so does the /ws command.
In the php (examples here), put
ExecuteBukkitCommand:warp spawn;
-
View User Profile
-
Send Message
Posted Feb 5, 2012How would I be able to send a command to the server but execute it as a player, for example if a user clicks on a button it warps them via typing "/warp spawn" for them?
PS: I'm a php noob so don't expect much, sorry, I learning.
-
View User Profile
-
Send Message
Posted Feb 4, 2012Two Requests
Id be happy to sponsor/donate (again) for both.
-
View User Profile
-
Send Message
Posted Feb 1, 2012@Waterflames
Idk if I need this php perms for it: pfsockopen, proc_open
If yes is this the reason.
-
View User Profile
-
Send Message
Posted Feb 1, 2012@Lockolu
Thats phpBB, which is forum software. I'm talking about your actual php version.
Read here to know what php version to have: http://php.net/manual/en/function.socket-create.php
Put phpversion(); to know what version of php you are using.
-
View User Profile
-
Send Message
Posted Feb 1, 2012@Waterflames
Yes.. Which PHP version is compatible?
I use phpbb3!
-
View User Profile
-
Send Message
Posted Feb 1, 2012@Lockolu
1. The style tags are being printed raw into bukkit. No use for that.
2. Your php doesn't have the socket functions. Either your php is outdated or something else is up. Read http://dev.bukkit.org/server-mods/websend/forum/help/31490-help-with-php-bukkit/#poststhis post for more help.