# Modules

All 24 GlacierStaff modules, what each does and where to configure it.

Each module has an ID, a config file at `modules/<id>.yml` and language files under `lang/en/`. Turn them on or off in `modules.yml` or from `/glacierstaff modules`, and reload one with `/glacierstaff reload <id>`.

When a module is off, its commands stay registered and answer with a "module disabled" message instead of vanishing from the command list.

## Defaults

All modules start enabled except `staffauth` and `discord`, which need secrets first. `core` is always on and isn't listed.

## Reference

| ID | Name | What it does | Guide |
| --- | --- | --- | --- |
| `core` | Core | `/glacierstaff` help, module menu, status and reload | |
| `vanish` | Vanish | Hide from players at levels 1 to 10, optionally at packet level | [Staff tools](/docs/staff/staff-tools#vanish-and-visibility-levels) |
| `staffmode` | Staff Mode | Staff tools in your hotbar with a crash-safe inventory journal | [Staff tools](/docs/staff/staff-tools#staff-mode) |
| `freeze` | Freeze | Lock a player in place with a timer, reason and private chat | [Moderation](/docs/staff/moderation#freezing-a-player) |
| `invsee` | Invsee | Live view or edit of inventories and ender chests, offline captures | [Inventories](/docs/staff/inventories#invsee) |
| `inventory` | Inventory | Snapshots, selective restores and restore revocation | [Inventories](/docs/staff/inventories) |
| `punish` | Punishments | Native cases with escalation, approvals and appeals, or a command menu | [Moderation](/docs/staff/moderation#punishments) |
| `modmail` | Mod Mail | Players message staff; staff claim, release and close from an inbox | [Moderation](/docs/staff/moderation#helpop-and-modmail) |
| `staffchat` | Staff Chat | Permission-gated channels, optionally synced over Redis | |
| `chatcontrol` | Chat Control | Mute, clear, and swear, link, spam, caps and advertising filters | [Moderation](/docs/staff/moderation#chat-control) |
| `cps` | CPS | Clicks-per-second tracking, alerts and violation levels | |
| `logs` | Logs | Every staff action in one log, in a GUI or chat | |
| `randomtp` | Random Teleport | Teleport to a random online player | |
| `staff` | Staff List | Online staff menu | [Staff tools](/docs/staff/staff-tools#staff-list) |
| `reports` | Reports | Prioritized reports with a queue, expiry, history and replay links | [Moderation](/docs/staff/moderation#reports) |
| `socialspy` | Social Spy | See GlacierHub private messages | [Running both](/docs/network/together) |
| `notes` | Notes | Staff notes and a join-alert watchlist | |
| `staffactivity` | Staff Activity | On-duty time and punishments per staff member | |
| `altdetect` | Alt Detection | Alerts for accounts sharing an IP | |
| `replays` | Replays | Capture and review gameplay before deaths, reports and freezes | [Replays](/docs/staff/replays-and-mining#replays) |
| `mining` | Mining | Suspicious ore cases, private X-ray and Reveal views | [Mining](/docs/staff/replays-and-mining#mining-review) |
| `staffauth` | Staff Auth | Login 2FA through an authenticator or Discord | [Staff auth](/docs/staff/staff-auth-and-discord) |
| `discord` | Discord | Moderation events to a Discord webhook | [Discord](/docs/staff/staff-auth-and-discord#discord-webhooks) |
| `staffutils` | Staff Utilities | Last seen, staff teleports, waypoints, AFK and the duty HUD | [Staff tools](/docs/staff/staff-tools) |

## Modules without a guide

### Staff Chat

Channels are defined in `modules/staffchat.yml`. Each has a display name, a prefix, view and send permissions and a Redis topic:

```yaml
general:
  staffchat:
    server-name: "Glacier-01"
    default: "staff"
    channels:
      staff:
        display: "Staff"
        prefix: "&#647F9C[&#A0B4C8&l{display}&#647F9C] &#647F9C({server}) &#94A3B8"
        permission:
          view: "glacierstaff.staff.staffchat.channel.staff.view"
          send: "glacierstaff.staff.staffchat.channel.staff.send"
        redis-topic: "staffchat:staff"
```

Admin and support channels ship alongside it. `/sc` toggles your default channel, `/sc switch <channel>` changes it, and `/sc send <message>` sends once without toggling.

### CPS

Tracks clicks over a rolling `sample-window`. Crossing `alert-cps` (15) alerts staff; crossing `flag-cps` (20) adds violations, which decay over time. Reach `serious-level` and the alert is marked serious. The commands under `violations.actions` only run if you set `violations.actions.enabled: true`; they're off by default. `input-mode: HYBRID` uses packets when ProtocolLib is there and Bukkit events otherwise. You can choose which kinds of clicks count, and exempt worlds, game modes or `glacierstaff.staff.cps.exempt`.

### Logs

Every freeze, vanish, rollback, chat action and punishment, newest first. `/logs view <player>` opens it in a GUI.

### Random Teleport

`/randomtp` jumps to a random online player. Filters skip spectators, creative players, AFK players, vanished staff and the last few targets (`avoid-repeat-last`). Players with `glacierstaff.staff.randomtp.exempt` are never picked.

### Notes and watchlist

```text
/notes Steve
/notes add Steve Asked about x-ray texture packs
/watchlist add Steve
/watchlist list
```

Watchlisted players trigger an alert with their note count and a workbench link when they join.

### Staff Activity

`/activity Steve` shows on-duty time and punishments issued. `/activity top` shows the most active staff, `leaderboard-size` places long.

### Alt Detection

When someone joins sharing an IP with other known accounts, staff get an alert. `/alts <player>` lists them at any time.

### Social Spy

`/spy` toggles seeing private messages sent through GlacierHub. Neither the sender nor the recipient is told.
