mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02: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:
co-authored by
Melledy
parent
2acd506245
commit
6d9e28963d
@@ -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