just pushing what i have the ui is still broken

This commit is contained in:
2026-05-26 23:15:19 -04:00
parent ade5f069e3
commit e236e1bab3
17 changed files with 581 additions and 93 deletions
+13
View File
@@ -15,6 +15,10 @@
"tables": {
"punishments": "staff_punishments",
"players_seen": "staff_players_seen"
},
"presence": {
"announce_staff_join_leave": true,
"leave_suppression_seconds": 10
}
}
```
@@ -37,6 +41,15 @@ Permission gating no longer lives here. Each command checks a permission node (`
| `punishments` | `"staff_punishments"` | Table name. Change only if you really need to and you're prepared to migrate data. |
| `players_seen` | `"staff_players_seen"` | Same. |
### presence
| Field | Default | Meaning |
|---|---|---|
| `announce_staff_join_leave` | `true` | When a staff member (anyone with `networkstaff.chat`) joins or leaves the **network**, announce on the staff chat channel. Server-to-server transfers via `/send` or `/hub` are suppressed. |
| `leave_suppression_seconds` | `10` | After a disconnect, wait this many seconds before declaring the player has "left the network." If they reconnect anywhere (any server) in that window, no leave message is sent. Tune higher if your transfers take longer than 10s; tune lower for snappier announcements at the cost of false positives. |
Requires NetworkCore's `PlayerPresence` service. If NetworkCore isn't running or PlayerPresence is unavailable, presence announcements are silently skipped (with a warning in the boot log).
## Setting up staff permissions
1. In your Hytale server's permission config, create a `staff` group (or whatever you want to call it).