HTTPConsole
HTTPConsole - Issue Console Commands Over HTTP
Now under new management, And has been revived! Originally by BlueJeansAndRain: Original thread: HTTPConsole - Outdated Thread
Download
Do not use v2.2.0 use 2.2.1 instead
HTTPConsole Latest Stable Build
Source Code and Issues/Feature Requests
Features
- Issue any command over HTTP that you can issue on the console.
- Change the listener IP address, port, and log-level through the config file.
- Get back the output of the issued command. NOTE: This only works for some commands, specifically commands that are not "threaded".
- Accepts GET and POST (url or json encoded) requests.
- Client IP address whitelist/blacklist.
- Host name filtering.
Usage
Client side scripts such as javascript are not recommended since any action could easily be performed. Please stick to using server side scripts, (i.e. make javascript query a php script)
Make requests to http://127.0.0.1:8765/console?command=<command> (assuming you're using the default port and the server is running on localhost). If you're running your server locally, just open up your browser and type http://127.0.0.1:8765/console?command=save-all and SAVE THE WORLD!
TroubleShooting
- Change the "port: 8765" configuration option to a different number. Valid values are 1024 - 65565
- Make sure your firewall is allowing access to the port.
Please post all issues or feature requests on GitHub!
@FilipEbR
You're right it does work, I was testing vanilla commands like who and lag and they were giving me invalid responses. I apologize for my earlier message saying it didn't work.
@FilipEbR
Thanks you, work fine.
Did you download my update for 1.5 from link: http://easycraft.no-ip.biz/HTTPConsole/ ?
Yes im running craftbukkit 1.5 [DEV]
screenshot of console: http://easycraft.no-ip.biz/HTTPConsole/screen.png
@FilipEbR
Are you using 1.5? Because for me I get an error like I posted before except change the 1_4_7R to 1_4_6R
What you have done is taken the source from github of 1.4.6 and only modified a few of the classes but not all of them necessary to make it fully 1.5 compliant.
@VodkaDK2
Realy? I tested this only on localhost and works great... If you have any errors show me :)
Sometimes vanillia commands are crashing but its not problem of my update.. Tested 20 commands and ALL off them working!
@FilipEbR
Doesn't work, it's targetting 1.4.6 now instad of 1.4.7 even. There are other class files that need to be updated to reference craftbukkit 1.5 beyond the one I mentioned in my earlier comment.
I updated HTTPConsole to 1.5
Here is link: http://easycraft.no-ip.biz/HTTPConsole/
I know, ads on page but hosting is not free :(
An update for v1.5 would be fantastic. It doesn't work in v1.5 quoting this message:
I believe the craftbukkit/v1_4_R1 inside of the RequestHandler.class needs to be updated to v1_5_R1 I would make the change myself and try it but I don't have the JDK installed on this system.
Update!! 1.5
update for 1.5?
:)
@StuckingFoned
WORKING GREAT! Been using it since the day after you posted. Thank you!
@FilipEbR
It works for me, though.
@StuckingFoned
Thank you!
@ThaMunsta
Unofficial 2.3.1 release for 1.4.7: http://ballzofsteel.com/plugins/HTTPConsole.jar
Just as a heads up bukkit beta build #2602 for 1.4.7 breaks HTTPConsole :( I won't update for now. I use this too much lol
java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_4_6/CraftServer at org.theanticookie.bukkit.httpconsole.RequestHandler.<init>(RequestHandler.java:73) at org.theanticookie.bukkit.HTTPConsole.onEnable(HTTPConsole.java:196) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321) at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300) at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259) at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_4_6.CraftServer at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 13 more
I love this plugin it's great. Thank you very much for continuing to update it.
I have a feature request, would it be possible to add another variable to the GET request to suppress the output of your commands in the console?
For example, I use the /lag command a lot over httpconsole to a web interface (once every 4 seconds or so) and it gets incredibly spammy in the console as the lag menu itself is about 5 lines of text. I still want to be able to parse that data through your plugin I just don't want it to also show in the games console afterwards and fill up my text logs.
I don't know if this is actually possible as I'm not sure how you're reading the output from the console and those messages may need to be shown for your plugin to grab them but it would be a useful feature for me if it was possible to suppress them.
Thank you.
I get this whenever I try to use this plugin, any idea why?
Thanks for the update. I love this plugin and appreciate the work you have done on it :)
@StuckingFoned Thank you, just uploaded release though. Added a couple more tweaks too.
To all of those having issues with HTTPConsole causing errors, HTTPConsole works fine with vanilla commands and is normally down to commands used which are from another plugin. Please note: HTTPConsole executes commands in a seperate thread, so commands are executed async to the main thread. This can cause issues with some plugins!
@nnTiger22222 untested should work: http://aciid.net/HTTPConsole.jar v2.2.2
fille will be removed when official update is released
@Sorroko Probably all you need to do is update the import in RequestHandler.java