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 Sep 1, 2012@Vinoto
I would strongly recommend using Java 7 since it holds many benefits Also: Java 6 works on Java 7 so all your other plugins should continue to work.
-
View User Profile
-
Send Message
Posted Aug 31, 2012I'm also getting the exception that Ezriilc got below: "[SEVERE] Could not load 'plugins\Websend.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException java.lang.UnsupportedClassVersionError Waterflames/websend/Main : Unsupported major.minor version 51.0"
Could you compile the plugin against Java 6 instead of 7 as every other plugin we use works fine on 6. Thanks.
-
View User Profile
-
Send Message
Posted Aug 29, 2012@jacklink01
I think you misunderstood my post. The time command you gave me worked perfectly. Everything with WebSend is working perfectly.
extra info if anyone cares: The problem was with WorldGuard. If you're using MySql with WorldGuard, everytime you make any change to any region, it does a sql update for ALL regions. In my case I have 3000 regions. So it was doing 3000 update statements everytime I sent a /rg flag command. I posted the details in the forums too: http://dev.bukkit.org/server-mods/websend/forum/bugs/42005-do-command-as-player-takes-90-seconds-approx-to-return/#p2
I fixed the bug in WorldGuard and am running a custom version of wg now. Everything works perfectly.
Thanks so much for your help.
-
View User Profile
-
Send Message
Posted Aug 28, 2012@dlcware
The problem is that "time set 6000" is a command for vanilla minecraft ONLY. If you have essentials or another time changing plugin installed, that command will probably not work. You will need to use whatever command that your plugins allow you to use. Usually /time day
-
View User Profile
-
Send Message
Posted Aug 28, 2012@Ezriilc
(derp): NEVERMIND! I just updated Java to Version 7, update 6, and POOF! No more error. I are a smart feller (herp).
-
View User Profile
-
Send Message
Posted Aug 28, 2012Ruh-roh, Raggie...
I've just implemented the newest release of Websend 2.0 for CB 1.3.1-R2.0 and it's throwing this error on server startup. I don't really know where to go with this since I'm not very good with Java yet. Can someone help me out?
Thanks in advance!
Ezriilc
EDIT (derp): NEVERMIND! I just updated Java to Version 7, update 6, and POOF! No more error. I are a smart feller (herp).
[SEVERE] Could not load 'plugins\Websend.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException java.lang.UnsupportedClassVersionError Waterflames/websend/Main : Unsupported
major.minor version 51.0
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222)
at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198)
at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50)
at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.UnsupportedClassVersionError Waterflames/websend/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
... 9 more
-
View User Profile
-
Send Message
Posted Aug 28, 2012@jacklink01
Thanks jacklink. I replaced my command with the "time" command you used and just as you, it worked perfectly. So apparently it has to do specifically with the command I was sending: rg flag myregion teleport 150,65,-50
Thanks again for your previous help. If you have any suggestions on this issue I appreciate it though at this point it doesn't really appear that WebSend is the culprit.
-
View User Profile
-
Send Message
Posted Aug 28, 2012@Waterflames
YES! Thank you very much! I've got all my code ready to deploy, and I'm looking forward to the new functionality.
I'm glad to see that the project is still viable. Great work!
-
View User Profile
-
Send Message
Posted Aug 28, 2012Nice, :) Going to Try it out today. :) The new Features sound Very Very Intresting. Should make Website Integration much Easier. :)
-
View User Profile
-
Send Message
Posted Aug 28, 2012@Ezriilc
It probably wasn't there because it needs to be approved by the bukkit team before it appears in the list. Try now, it should be there.
-
View User Profile
-
Send Message
Posted Aug 27, 2012I just got a notice that Websend 2.0 Release was uploaded today, but I can't find it. Was it a mistake?
I really need the onlinePlayersIP POST data, and the Beta doesn't seem to work with MC 1.3.2.
Any hope?
-
View User Profile
-
Send Message
Posted Aug 27, 2012@dlcware
If I understand you correctly, you are trying to run many commands in the same script but there is a delay between each command?
I tried running the following script and all 4 commands occurred instantly for me. Do you have any other plugins that might interfere with this?
-
View User Profile
-
Send Message
Posted Aug 26, 2012I'm having an issue where every time I send doCommandAsPlayer it takes a long time (> 90 seconds to return). The command executes right away, but if I want to execute several commands in a row it takes a very long time because I have to wait for each one.
At first, it seems like Metrics was involved because every time I would watch the log, metrics would report an http error at the same time that Websend returned. I have turned Metrics opt-out=true and I no longer see the Metrics errors.. However, the delay remains. I am not sure if issues are related. Thx
EDIT: As stated in the documentation, doCommandAsPlayer requires that you're logged in to minecraft as the user you use in doCommandAsPlayer. I am doing that. However I noticed that when I do not do that, doCommandAsPlayer returns immediately as it should. Of course, the commands no longer work. But I thought that info might help debug. Thx again
-
View User Profile
-
Send Message
Posted Aug 26, 2012@mig4ng
Mine doesn't allow sockets, but I have a system that polls the server every couple minute for commands it needs to issue... players don't get their new permissions from donating immediately, but instead the next time the script runs.
-
View User Profile
-
Send Message
Posted Aug 22, 2012@MariuszT
We are currently discussing the future of the plugin. If you would like our updated version, PM me.
-
View User Profile
-
Send Message
Posted Aug 22, 2012@jacklink01
You have source code, what is the problem to develop plugin with Waterflames?
-
View User Profile
-
Send Message
Posted Aug 22, 2012@TanveerGT5
If that was directed at me, you can request a feature, but I cannot distribute our edited version of Websend unless I get permission from Waterflames. PM me and maybe a private transaction would not break the license? :)
-
View User Profile
-
Send Message
Posted Aug 22, 2012-
View User Profile
-
Send Message
Posted Aug 21, 2012We have decompiled the plugin and have been working on improving it for personal use. We have implemented a much better chat color parsing system that uses the actual chat color codes rather than the commands (Ex: &3) and are working on improving many other aspects of the plugin. We have fixed issues like with the ExecutePlayerCommand and have begun cleaning up the code.
@Waterflames I hope you can implement some of the features and changes we make in a future version. We would love to work with your more on making this plugin and keep it's documentation up to date. We love this plugin and are extremely grateful for the amount of effort you have put into it.
-
View User Profile
-
Send Message
Posted Aug 21, 2012@mig4ng
You should be able to use any port that you want with this plugin by using the ALTPORT field in the config. I am using Surpass Hosting and Bluehost. They both allow you to open web sockets, but you do have to contact them to have them open it for you.