Overview
Permission Levels
Admin and Staff tiers
Permission Checks
How to verify permissions
Logging
Audit trail for admin actions
Permission Hierarchy
| Level | Method | Access |
|---|---|---|
| Admin | player.Permissions:IsAdmin() | Full admin panel, all commands, all callbacks |
| Staff | player.Permissions:IsStaff() | Limited panel, staff commands, read-only callbacks |
| Player | Neither | No admin access |
Checking Permissions
In Server Callbacks
All admin callbacks follow this pattern:Tiered Access
Some callbacks support both admin and staff with different capabilities:In Chat Commands
Use the Chat component’s built-in admin/staff registration:In Event Handlers
Middleware Initialization
Admin permissions are initialized when a character spawns:Logging Patterns
All significant admin actions should be logged to multiple outputs:Standard Admin Action Log
Ban Logging
Best Practices
Always Verify Permissions Server-Side
Always Verify Permissions Server-Side
Log All Destructive Actions
Log All Destructive Actions
Use Appropriate Permission Level
Use Appropriate Permission Level
Next Steps
Admin - Commands
Chat commands reference
Admin - Callbacks
Admin panel callbacks
Logger API
Logging system
Chat API
Command registration