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:
RaidenShogun503
2025-11-27 10:45:45 +07:00
committed by GitHub
parent 2acd506245
commit 6d9e28963d
7 changed files with 58 additions and 10 deletions

View File

@@ -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");
});
}