feat: 完整游戏运维功能

This commit is contained in:
npc0-hue
2026-07-18 09:04:01 +08:00
parent f3b14b7945
commit 48b8ad8d6c
187 changed files with 16607 additions and 1140 deletions
@@ -1,6 +1,10 @@
{
"command": ["true"],
"env": {
"version": 1,
"action": "install",
"mode": "oneshot",
"executableKey": "bin/install-server",
"arguments": [],
"environment": {
"GAME_ID": "minecraft",
"SERVER_TEMPLATE": "minecraft-java"
},
@@ -1,6 +1,8 @@
{
"command": ["true"],
"env": {
"version": 1,
"action": "restart",
"mode": "control",
"environment": {
"GAME_ID": "minecraft",
"SERVER_ACTION": "restart"
},
@@ -1,6 +1,10 @@
{
"command": ["true"],
"env": {
"version": 1,
"action": "start",
"mode": "supervised",
"executableKey": "bin/game-server",
"arguments": ["--foreground"],
"environment": {
"GAME_ID": "minecraft",
"SERVER_ACTION": "start"
},
@@ -1,6 +1,8 @@
{
"command": ["true"],
"env": {
"version": 1,
"action": "status",
"mode": "control",
"environment": {
"GAME_ID": "minecraft",
"SERVER_ACTION": "status"
},
@@ -1,8 +1,10 @@
{
"command": ["true"],
"env": {
"version": 1,
"action": "stop",
"mode": "control",
"environment": {
"GAME_ID": "minecraft",
"SERVER_ACTION": "stop"
},
"timeoutMs": 30000
"stopTimeoutMs": 30000
}