adds forge support, fixes some critical errors
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user