fix(velocity): 休眠服 MOTD 按唤醒策略说明谁能唤醒,闲置回收期间加入给出回收提示
This commit is contained in:
10 files changed
+76
-7
No files matched your search
+3
-1
@@ -1276,7 +1276,9 @@ paths:
|
||||
start failed and its automatic retries are spent (ServerInfo.startGaveUp);
|
||||
the server stays down until a person starts it from the panel.
|
||||
server_retiring: the owner gave the server up or an admin is deleting it;
|
||||
it stays down until the reaper archives it.
|
||||
it stays down until the reaper archives it. world_reclaiming: the idle
|
||||
reaper is archiving the world; afterwards the server is released with an
|
||||
empty world.
|
||||
content:
|
||||
application/json:
|
||||
schema: { $ref: '#/components/schemas/Error' }
|
||||
|
||||
@@ -221,6 +221,7 @@ per-server cooldown → global running cap**. Map the API result:
|
||||
|---|---|---|---|
|
||||
| `403` | `forbidden` | `autostartPolicy=allowlist` and UUID not allowlisted, or `ownerOnly` and caller is not owner | Add the UUID / claim the server / set `autostartPolicy=public` |
|
||||
| `409` | `maintenance_in_progress` | A restore, backup or file write holds the server's world volume (§3b) | Wait for the Job to finish |
|
||||
| `409` | `world_reclaiming` | The idle reaper is archiving the world (§3b item 3); afterwards the server is released with an empty world | Nothing to wait for; the old world stays in the archive |
|
||||
| `429` | (cooldown) | Wake retried within the 30s per-server `WakeCooldown` | Wait out the cooldown |
|
||||
| `503` | `at_capacity` | Global `MaxRunningServers` cap reached | Stop another server or raise the cap |
|
||||
|
||||
@@ -231,7 +232,8 @@ teleports when `ready=true`.
|
||||
|
||||
The Velocity-side consumption of these codes (`403` → "You're not allowed to
|
||||
start «server»"; `409 maintenance_in_progress` → "«server» is under
|
||||
maintenance", not queued; `429` → re-queue; other → "Couldn't start … Try again
|
||||
maintenance", not queued; `409 world_reclaiming` → "«server» sat idle too
|
||||
long and its world is being archived", not queued; `429` → re-queue; other → "Couldn't start … Try again
|
||||
shortly.") lives in the Java plugin and is **[CODE-ONLY]** — the codes it reacts
|
||||
to are produced by the Go-tested `authorizeWakeByUUID` / cooldown limiter, so
|
||||
grade the two halves separately.
|
||||
|
||||
Reference in new issue
Block a user