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.
I have helped him it and it works
And when come a new version?
@user44
ExecuteBukkitCommand only works in bukkit -> php because it requires a player. You can emulate a player, but that requires that player to be on the server at the time of execution.
user44 komm auf weasels ts dann erklär ich dir das
Oh okay, thanks. My Line looks like that:
But when I klick on that the Server write this: 21:29:33 [INFO] /Command/ExecuteBukkitCommand: /butcher 21:29:33 [INFO] ExecuteBukkitCommand is not supported in this way.
@user44
Read this: http://dev.bukkit.org/server-mods/websend/pages/syntax/
ExecuteBukkitCommand and ExecuteConsoleCommand can execute any commands.
For butcher you would use ExecuteBukkitCommand:/butcher (since the normal command is butcher, and 1 / is removed.)
Oh nice the *.php works now! But how can I make it for expample that when I klick on "externalbutcher.php" the Command "butcher" will be execute? Or an other question: Wich Commands can I use with Websend; can you give me some examples please?
@user44
Thats the wrong port. You can't send websend data to the minecraft port, it doesn't know what to do with it. Websend listens on port 4445
I checked it again and I dont have using the wrong port. I send now the Lines wich I have edited:
config.txt
minecraft.php
ExternalTimeSet.php
I didnt edit other lines.
@user44
I think your using the wrong port in your ExternalTimeSet.
Hi, I get this Error by navigating to the ExternalTimeSet.php
@Beminecraft
Yes
Waterflame, when we add /Command/ExecuteBukkitCommand, this executes the command like if it were the player himself executing him right?
@Waterflames
All right, thank you very much ;)
@Beminecraft
I'll see what I can do.
@Waterflames
Is it gona be fixed in the next version? Cause this bug is making my players lose some money when they try to do some commands for nothing :(
Hello! I was trying to let websend send a console command (php -> bukkit) when a php page is accessed and certain conditions met but that didn't work. At first I got the error "can;t connect to host" with both my own script and ExternalTimeSet.php. I removed websend, reinstalled it and set the config.txt up again and now ExternalTimeSet.php gives no errors but it simply does nothing. The server log doesn't show any sign of Websend doing anything.
Any clues to what might be going on?
Thank you in advance.
Edit: my own script gives a blank page and no sign of any command being ran too.
Doubleninjaedit: Reinstalling it again 3 times fixed it for some strange reason... but well it does work now!
@n3wton
Will be fixed in next version.
I keep getting an exception on disable. Not a massive problem, more of an annoyance.
Running latest Bukkit RB and latest WebSend.
[SEVERE] Error occurred while disabling Websend v0.9 (Is it up to date? ): null java.lang.NullPointerException at websend.Main.onDisable(Main.java:86) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:176) at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoade r.java:978) at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManag er.java:296) at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginMana ger.java:289) at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:16 6) at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
@Beminecraft
I was aware of that and an official bugfix was implemented a few versions ago, but due to multithreading it doesn't work nicely yet.
Hey, I don't know whether or not anyone told about this bug, but when we reload the server, the port listening to the web requests is not closed, so the web requests are not working. The only solution to reload the server and to have the plugin work is to stop it and start it again. I think it should be easy to fix, and hope you'll fix it soon :D Thanks