adds forge support, fixes some critical errors

This commit is contained in:
2023-10-08 13:38:00 -06:00
parent 6944cbb9f7
commit ad4629576c
21 changed files with 3484 additions and 132 deletions

View File

@@ -5,6 +5,7 @@ export enum ManageAction {
start = "start",
stop = "stop",
restart = "restart",
kill="kill"
}
export const handler: Handlers = {
@@ -17,6 +18,9 @@ export const handler: Handlers = {
case ManageAction.stop:
SERVER_STATE.gracefullyStopMCServer();
return new Response("stopped");
case ManageAction.kill:
SERVER_STATE.forceStopMCServer();
return new Response("stopped");
case ManageAction.restart:
SERVER_STATE.restartMCServer();
return new Response("restarted");