mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-25 10:44:37 +01:00
Add Command SetLevel (#8)
* Add Remote Command API (Use KEY) * Clean up HttpServer by removing unused code Removed commented-out code * Add SetLevel Command (need to restart the game for it to take effect) * Add Proto Request Change Level (Not Work) * Update setlevel command --------- Co-authored-by: Melledy <121644117+Melledy@users.noreply.github.com>
This commit is contained in:
@@ -163,14 +163,9 @@ public class HttpServer {
|
||||
// https://nova-static.stellasora.global/
|
||||
getApp().get("/meta/serverlist.html", new MetaServerlistHandler(this));
|
||||
getApp().get("/meta/win.html", new MetaWinHandler(this));
|
||||
// if (!Nebula.getConfig().getRemoteCommand().useRemoteServices) {
|
||||
// getApp().post("/api/command", new RemoteHandler());
|
||||
// }
|
||||
|
||||
getApp().post("/api/command", new RemoteHandler());
|
||||
// getApp.get("/notice/noticelist.html");
|
||||
getApp().get("/webchatv3/*", ctx -> {
|
||||
ctx.redirect("https://google.com");
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user