Glass Plugin Suite Wiki / StaffTracker
StaffTracker
Version 0.1.0-alpha.4 • Tested on Paper 26.3 • Java 25 • Support: support@glasshosting.com
Overview
StaffTracker records staff activity and shows it in game and, optionally, in Discord:
- Online, active, AFK and vanish time; first join and last seen.
- Counts of commands, chat, private message attempts, teleports, and blocks placed and broken.
- Moderation counts from LiteBans (warnings, mutes, kicks, bans) and on-demand CoreProtect history.
- A read-only dashboard (
/track), top 10 leaderboard, team filters, weekly/monthly/all-time windows, CSV export. - An optional Discord companion bot with
/staffstatsand/stafftop.
It never punishes staff or ranks them by punishments. Command arguments and chat or PM bodies are never stored.
Requirements
- Paper 26.3 (tested), Java 25.
- Optional: CMI and CMILib (AFK, vanish, playtime), PremiumVanish or SuperVanish, LiteBans, CoreProtect (API 12+), Nexo.
- Optional: Python 3.11+ for the Discord companion.
Installation
- Put the JAR in
plugins/and start. SQLite works out of the box. - Give each staff group
track.staff(OP alone does not opt anyone in). Add team nodes for filtering. - Give report viewers
track.viewand adminstrack.admin. - Have a staff member join, move, chat and run a command, then
/track statusand/track <player> weekly.
LuckPerms example (use your own group names):
lp group moderator permission set track.staff true
lp group moderator permission set track.team.moderator true
lp group builder permission set track.staff true
lp group builder permission set track.team.builder true
lp group admin permission set track.admin true
Commands
| Command | Permission | What it does |
|---|---|---|
/track or /track menu |
track.view |
Open the dashboard (36 profiles per page, team and period filters). |
/track <player-or-UUID> [weekly|monthly|alltime] |
track.view |
Activity and moderation report. |
/track top [timeframe] [team] |
track.view |
Top 10 by active time. |
/track history <player-or-UUID> [weekly|monthly] |
track.view |
CoreProtect history counts (separate from native counts). |
/track status |
track.view |
Storage and integration status. |
/track export <player-or-UUID> [timeframe] |
track.admin |
CSV to plugins/StaffTracker/exports. |
/track reload or /trackreload |
track.admin |
Reload collection flags, teams and intervals without resetting sessions. |
/stafftrackerpremium preset|discord|menu ... |
stafftracker.premium |
Paid edition. See Editions. |
Permissions
| Node | Default | Grants |
|---|---|---|
track.view |
op | View staff reports, including vanish activity. |
track.admin |
op | Reload and export; includes track.view. |
track.staff |
false | Include this player in tracking. Assign to staff explicitly. |
track.team.builder, track.team.moderator |
not declared | Team selection (from teams: in config). |
stafftracker.premium |
op (not declared in plugin.yml) | Paid edition commands. |
Configuration
config.yml
| Key | Default | Effect |
|---|---|---|
server-id |
glassmc-survival |
Unique per server. Do not change while recovery files are pending. |
tracking.permission |
track.staff |
Node that opts a player in. |
tracking.sample-seconds |
5 |
AFK and vanish sampling. |
tracking.flush-seconds |
30 |
Database write interval. |
tracking.idle-seconds |
300 |
Idle time before AFK (fallback when CMI is absent). |
tracking.break-days |
7 |
Inactivity gap threshold. |
tracking.uuids |
[] |
Track these UUIDs even without the permission. |
features.activity / afk / vanish / commands / messages / private-messages / teleports / building |
true |
Turn each counter on or off. Off means unmeasured, not zero. |
integrations.cmi / vanish / litebans / coreprotect |
true |
Use each integration when installed. |
commands.ignored |
login, register, changepassword, password, 2fa, auth, pin | Labels never recorded. |
commands.private-message |
msg, tell, w, whisper, pm, message, reply, r | Labels counted as PM attempts. |
commands.teleport |
tp, tpo, tphere, tpa, tpahere, tpaccept, back, warp, home, spawn, rtp | Labels counted as teleport attempts. |
teams.<name>.permission |
builders: track.team.builder, moderators: track.team.moderator, staff: track.staff |
First match wins; order matters. |
teams.<name>.moderation |
builders false, others true |
Include moderation counts. |
coreprotect.max-records |
10000 |
Cap for /track history. |
api.enabled |
false |
Read-only HTTP API for the Discord companion. |
api.bind |
127.0.0.1 |
Bind to loopback or a specific private address; wildcard binds are rejected. |
api.port |
8766 |
API port. |
api.token-env |
STAFFTRACKER_API_TOKEN |
Environment variable holding the bearer token (32+ random characters). |
metrics.enabled |
true |
bStats opt-out. |
premium.discord.* |
off | Paid alerts: staff_online, staff_offline, staff_admin_action. |
branding.item-model |
auto |
Menu icon model. |
database.yml (restart after changes)
| Key | Default | Effect |
|---|---|---|
storage.type |
sqlite |
sqlite or mysql. |
storage.mysql.jdbc-url |
jdbc:mysql://127.0.0.1:3306/stafftracker?sslMode=REQUIRED |
MySQL URL. |
storage.mysql.username |
stafftracker |
User. |
storage.mysql.password-env |
STAFFTRACKER_DB_PASSWORD |
Password environment variable. |
storage.mysql.password |
'' |
Fallback password. |
storage.mysql.pool-size |
4 |
Connection pool size. |
litebans.enabled |
false |
Direct read-only connection for proxy-hosted LiteBans (otherwise the installed LiteBans API is used). |
litebans.jdbc-url |
jdbc:mysql://127.0.0.1:3306/litebans?sslMode=REQUIRED |
LiteBans database. |
litebans.username |
stafftracker_readonly |
Read-only user. |
litebans.password-env |
STAFFTRACKER_LITEBANS_PASSWORD |
Password environment variable. |
litebans.password |
'' |
Fallback password. |
litebans.table-prefix |
litebans_ |
Table prefix. |
Discord companion
The Discord companion is a separate Python program. Downloads are coming soon through GlassBilling; the setup steps below apply once you have it.
- Set
api.enabled: trueand keep the API on loopback or a private network. - Set the same
STAFFTRACKER_API_TOKENfor the server and the bot. - Create a Discord bot with the bot and application-commands scopes.
- Copy
config.example.jsontoconfig.jsonand setguild_id,api_url,viewer_role_ids,admin_role_ids,team_rolesandlinks(verified Discord user to Minecraft UUID). python3 -m venv .venv,.venv/bin/python -m pip install -r requirements.txt, setDISCORD_BOT_TOKEN, run.venv/bin/python bot.py.
Slash commands: /staffstats user:@Member timeframe:weekly, /stafftop timeframe:monthly role:@Builders. Replies are private (ephemeral).
Using it efficiently
- Opt in by permission, not OP, so only real staff are tracked.
- Order teams from most specific to least; the first match wins.
- Builders get
moderation: falseso their reports skip punishments. - Read the numbers as activity, not quality. Unmeasured time is not zero.
- Use presets to tune load:
small-smpsamples every 10 s,large-networkkeeps 5 s with a 180 s idle window. - Backups: keep
stafftracker.db, its WAL files and recovery JSON files together, with the server stopped.
Integration with other Glass plugins
Standalone. Works alongside GlassPerms (assign track.staff and team nodes from the GlassPerms editor).
Troubleshooting
| Problem | Fix |
|---|---|
| A staff member is missing | They need track.staff (or a UUID in tracking.uuids) and must join once after install. |
| Vanish time shows unknown | Install PremiumVanish, SuperVanish or CMI. |
| Reports say unavailable | The database cannot flush; check /track status and the console. |
| Discord bot denies a user | Their role is not in viewer_role_ids or admin_role_ids. |
Changelog
- 0.1.0-alpha.4 (free edition alpha, from 2026-10-13): Nexo pack sync for shard models, Glass Shard menu icons when models are on, bug batch and full test fixes.