feat: 完善维护模式与运行期功能管理

This commit is contained in:
2026-06-12 00:08:40 +08:00
parent 113ae24afe
commit 061c3be2b1
20 changed files with 686 additions and 181 deletions
+12 -3
View File
@@ -84,7 +84,7 @@ help:
repair: " &f/repair &7- Repair held or all items"
admin: " &f/essc admin &7- Toggle admin mode"
tpsbar: " &f/tpsbar [player] &7- Toggle TPS boss bar"
maintenance: " &f/maintenance <on|off|status|reload> &7- Manage maintenance mode"
maintenance: " &f/maintenance <on|off|status|reload|add|remove|list> &7- Manage maintenance mode"
blocks-menu:
title: "&6&lEssentialsC &8- &e&lShortcut Menu"
@@ -180,5 +180,14 @@ maintenance:
enabled: "&aMaintenance mode enabled."
disabled: "&cMaintenance mode disabled."
reloaded: "&aMaintenance configuration reloaded."
status: "&7Maintenance mode status: {status}"
usage: "&cUsage: /maintenance <on|off|status|reload>"
status: "&7Maintenance mode status: {status} &8| &7Whitelist: &f{whitelist_count}"
usage: "&cUsage: /maintenance <on|off|status|reload|add|remove|list>"
add-usage: "&cUsage: /maintenance add <player|uuid>"
remove-usage: "&cUsage: /maintenance remove <player|uuid>"
whitelist-added: "&aAdded {player} to the maintenance whitelist."
whitelist-removed: "&aRemoved {player} from the maintenance whitelist."
whitelist-exists: "&e{player} is already on the maintenance whitelist."
whitelist-missing: "&c{player} is not on the maintenance whitelist."
whitelist-empty: "&7The maintenance whitelist is empty."
whitelist-list: "&7Maintenance whitelist ({count}): &f{entries}"
login-blocked: "&e{player} was blocked by maintenance mode. &7UUID: {uuid} &8| &7IP: {address}"