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 Nov 27, 2012@Ezriilc
All right, i beleve you from your first word. I did not want to create evil. I've never said something now and we stop talking intill @prattcmp responds again.
-
View User Profile
-
Send Message
Posted Nov 26, 2012@Pr07o7yp3 Please post the exact command it is not executing, aswell as any bukkit/php error logs.
-
View User Profile
-
Send Message
Posted Nov 26, 2012Hello, this new version of websend is pretty buggy. Especially the part with PHP -> Bukkit.
There are many times that I send a command to websend by PHP but it doesn't execute it.
Before I used old version with socket_connect ... and I haven't any problems..
-
View User Profile
-
Send Message
Posted Nov 26, 2012@cookcraft
Excuse me, but I must insist, for the sake of accuracy.
I can only look at the info he's given us, and that error - "unexpected T_STRING" - is definitely being caused by the lack of parentheses in his include statement; there is zero doubt about that. The replacement code I offered will fix that error for sure, and that fact is incontrovertible. This falls into the category of the most basic PHP syntax.
I very rarely ever insist that I'm completely correct about anything, but in this case, it's quite simple and clear. There's absolutely no possibility that I'm wrong on this particular point, according to all the info he's provided here.
There is no need for us to see any of the rest of his code, unless he's having other problems, in addition to the one that has already been completely corrected.
Re: include() vs. include_once(). It's always better to use include_once(), unless you intend to repeat the code more than one time. The same goes for require().
-
View User Profile
-
Send Message
Posted Nov 26, 2012You can use this too (not tested):
include('Websend.php');@Eziilc Fixed what? he don't have send an message that it is fixed, if it is not fixed and he send his code we can look to the syntax. I Think your right, but if it issnt the problem...
-
View User Profile
-
Send Message
Posted Nov 25, 2012@cookcraft
Sorry, did I miss something? I'm pretty sure I fixed it already.
@prattcmp
The missing parentheses are definitely the reason for the "unexpected T_STRING" error message, without any doubt whatsoever.
Replace your statement:
include_once 'Websend.php';With this:
include_once('Websend.php');-
View User Profile
-
Send Message
Posted Nov 25, 2012@prattcmp
Can you send your file so i can see whats wrong? Its what @Ezeiilc said but i can fix it.(i thing)
-
View User Profile
-
Send Message
Posted Nov 24, 2012@prattcmp
This is not caused by or related to Websend.
Parse error means your basic syntax is wrong. unexpected T_STRING means something is missing before what's in the single quotes.
In PHP, functions require their arguments be enclosed in parentheses. Like this:
include_once('Websend.php');
-
View User Profile
-
Send Message
Posted Nov 24, 2012Parse error: syntax error, unexpected T_STRING in /home/test/public_html/includes/ucp/ucp_activate.php on line 101
The line is on include_once 'Websend.php'; Please help!
-
View User Profile
-
Send Message
Posted Nov 19, 2012WSEvents is out of date, pleas update!
-
View User Profile
-
Send Message
Posted Nov 17, 2012Fixed config related issues. http://dev.bukkit.org/media/files/648/9/package.zip
-
View User Profile
-
Send Message
Posted Nov 16, 2012WEBSEND ERROR: Error while parsing config file.
I used dev version : http://dl.bukkit.org/downloads/craftbukkit/view/01571_1.4.4-R0.1/
-
View User Profile
-
Send Message
Posted Nov 16, 20122.2 is broken (doesn't generate config) 2.1 works just fine...
-
View User Profile
-
Send Message
Posted Nov 16, 2012@Waterflames
I am getting these here:
09:03:03 [INFO] [Websend] Enabling Websend v2.2
09:03:03 [INFO] [Websend] WEBSEND ERROR: Error while parsing config file.
09:03:03 [INFO] [Websend] Invalid line: PASS=sffsdsdfsdfsdf
09:03:03 [INFO] [Websend] WEBSEND ERROR: Error while parsing config file.
09:03:03 [INFO] [Websend] Invalid line: URL=http://uncovery.me/x.php
09:03:03 [INFO] [Websend] WEBSEND ERROR: Error while parsing config file.
09:03:03 [INFO] [Websend] Invalid line: DEBUG_WEBSEND=true
09:03:03 [INFO] [Websend] WEBSEND ERROR: Error while parsing config file.
09:03:03 [INFO] [Websend] Invalid line: WEBLISTENER_ACTIVE=true
09:03:03 [INFO] [Websend] WEBSEND ERROR: Error while parsing config file.
I think you missed an ELSE in line 154 or something:
https://github.com/Waterflames/Websend/blob/master/src/Waterflames/websend/ConfigHandler.java
-
View User Profile
-
Send Message
Posted Nov 16, 2012@huntershenep Yes and also:
http://dev.bukkit.org/media/files/647/787/package.zip
-
View User Profile
-
Send Message
Posted Nov 16, 2012@Waterflames
Thanks, in Java 6? Could you provide a mirror for now?
-
View User Profile
-
Send Message
Posted Nov 16, 2012Websend 2.2 has been uploaded. Will be available once approved by bukkit staff.
-
View User Profile
-
Send Message
Posted Nov 16, 2012PLEASE Update..... Tis plugin i verry essential for my server... Issue:
-
View User Profile
-
Send Message
Posted Nov 15, 2012I have sent $10, and I will give the rest when it is re compiled! Thank you very much for coming out with such a useful plugin!
-
View User Profile
-
Send Message
Posted Nov 15, 2012Hello, The Websend 2.0 (for Java 6) has stopped working for me with 1.4.4 . I see that there's a newer one, but like many others, most linux servers have Java 6. If you could please compile another for Java 6, I'll gladly donate another $20, as I did last time.