Moderation
Audience: Server operators · Prereqs: Users and Ranks
Canonical source:
src/shell/permissions.js
Practical, day-to-day moderation - what commands actually exist, and what to reach for when something goes wrong in a room.
Setting up moderators
Grant the Moderator rank (10) to trusted players via the database - see Users and Ranks:
UPDATE users SET adminRoles = 10 WHERE username = 'someone';
At Moderator rank or above, a player can use every command tagged Moderator in the generated slash command reference - which is most of the built-in room-management surface: boot, notify, enableCheats, limit, warpall, lock, rounds enable/length/skip, and every change command (gravity, speed, scale, etc. - see Modifiers for exactly what each one does and how @a/@t/@o scoping works). Weather and time of day aren't core commands any more - they come from the bundled LegacyWeather plugin as /weather set|clear|auto and /time set (Moderator, or the owner of a private room), with /weather get and /time get open to anyone - see its page.
The commands you'll actually use
The full list with exact permission tuples lives in the generated slash command reference - these are the ones day-to-day moderation actually reaches for:
/mod boot @player- disconnects a player from the current room. This is a kick, not a ban - see Users and Ranks for what that means in practice and what your real options are if you need something more permanent./room notify <message>- broadcasts a message to everyone currently in the room, useful for warning a player before booting them, or announcing a rule./room lock true- stops new players from joining the room (existing players are unaffected)./room enableCheats false- make sure this is off in any room you don't want thechange-category commands (gravity, speed, etc.) usable at all, even by players who'd otherwise have permission. One exception: an Admin (rank 20+) running a cheat command in a room with cheats off turns them on for that room, with a notice to everyone, instead of being refused./admin announce <message>- Admin rank only; sets the homescreen announcement text server-wide, not scoped to one room. Use for site-wide notices (maintenance windows, etc.), not in-room moderation.
Seeing who's in a room
In a room, /room info (Guest rank, so any player can already run it) shows current room info, and the room's own player list is visible in the normal in-game UI. Across the whole deployment, the bundled LegacyAdmin plugin's admin panel (/admin, any Moderator+ account can log in) has a Rooms tab: every open room on every game server, who's in it, its recent chat, and a kick button.
Public vs. private rooms change what's enforceable
Remember the permission-tuple rule from Users and Ranks: in a public room, only the command's top-level bypassRank tier can use it at all - the private-room allowance never applies. This means a Moderator can /mod boot someone in any public room, but a regular player's private room already grants them elevated command access within their own room by design (that's the whole point of private rooms - /change speed, etc. are meant to be player-controlled fun there). Don't be surprised that a report of "someone was messing with gravity in their own private room" isn't actually a moderation issue - that's intended behavior, not a hole to close.
Database-level moderation
For anything the command system doesn't cover - editing a player's stats, resetting their inventory, actually removing their access - see The Database directly, or the admin panel if you don't have filesystem access to the services machine. Its SQL tab's template dropdown includes several ready-made queries for exactly this ([users] Set User Admin Role, [users] Update User Username, [users] Delete User by Account ID, etc.).
Common Issues
A command says "Insufficient permissions" even though I just granted the rank. The player needs to actually re-log (or at least have their session refresh) for a database-level adminRoles change to take effect - it's read at login/session-resolution time, not polled live.
I booted someone and they immediately rejoined. Expected - boot is a kick, not a ban. Use LegacyAdmin's ban instead - see Users and Ranks.
Next: Closed Mode.
This page was drafted with AI assistance and reviewed for accuracy. If something looks wrong, please open a PR or flag it.
