Host network staff commands from wc-common; fly/invis on hub #7
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/wc-core-admin-commands"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Moves the game-agnostic Bukkit admin commands from
wc-mcsgintowc-commonso every host plugin can register them, and wires/fly+/invisonto the hub — the first concrete step toward "WillowcrestCore commands on every server" (continues thewc.command.*namespace work from359b86c).Changes
Relocations (wc-mcsg → wc-common):
FlyCommand,InvisCommand,TpCommand,HealCommand,FeedCommand,ClearChatCommand,InvseeCommand(+InvseeListener),ResetStatsCommand,SetCoinsCommand,DatabaseCommand,StaffStateReceiverPermissionBridge(now exposesSTAFFRELOAD_CHANNELpublicly),OnlinePlayerSourceGameStateCommand,VetoCommand, lockchat/spectate) stay inwc-mcsgHub (
wc-hub):staff.ymlviaPermissionManager(/config/staff/staff.yml, same mount path as the proxy)PermissionBridge(join/quit attachments +wc:staffreloadrefresh)StaffStateReceiver, so persisted fly/invis now applies on hub join/flyand/invis(synchronous DB fallback — single small upsert per toggle)chart/templates/hub/deployment.yamlmounts the existingwc-mc-staff-configConfigMapProxy (
wc-velocity):/staffreloadrefreshes the hubStaffStateStoremiss syncs the default all-false state instead of NPEVerification
Notes for reviewers
OPSenv var — staff access there is governed purely bystaff.yml; ops-implicit-*remains a game-pod-only conceptplugin.yml+ two-line wiring change per host