# Modules

All 22 GlacierHub modules, what each one does and where it's configured.

Every module has an ID, a config file at `modules/<id>.yml` and a language file at `lang/en/<id>.yml`. Turn modules on or off in `modules.yml`, from `/glacierhub modules`, or through the API. `/glacierhub reload <id>` reloads one module without touching the rest.

```yaml
modules:
  navigator: true
  queue: true
  parkour: false
```

`core` is always on and isn't listed in `modules.yml`.

## Core

`core` · always on

The `/glacierhub` admin command: `help`, `modules`, `status` and `reload`. The module menu shows each module's state and lets staff with `glacierhub.staff.core.*` toggle them.

## Navigator

`navigator` · `modules/navigator.yml`

A GUI server selector, opened with `/navigator` or the hotbar compass. Each entry has a slot, material, name, lore and target server. Servers can be locked behind a permission, hidden from players without it, or marked unavailable with their own lore.

By default a click goes through ajQueue when it's installed and `depends.ajqueue` is on, and connects directly otherwise. An entry with `connect-mode: QUEUE` uses the built-in queue instead. See [navigator and queue](/docs/hub/navigator-and-queue).

## Queue

`queue` · `modules/queue.yml`

Holds players until the target server has a free slot. Players see their position, refreshed every `position-update-interval`. Priority comes from permissions:

```yaml
general:
  poll-interval: 3s
  position-update-interval: 10s
  priority-permissions:
    "glacierhub.queue.priority.staff": 100
    "glacierhub.queue.priority.vip": 10

servers:
  survival:
    max-players: 100
    permission: ""
```

Higher numbers go first. Players use `/queue join <server>`, `/queue leave` and `/queue list`.

## Cosmetics

`cosmetics` · `modules/cosmetics.yml`

Hats, wings, particle trails, pets, gadgets and death/kill effects, grouped into categories in one menu. 34 cosmetics come bundled. Each can be locked behind a permission, and the shop can sell those permissions. Gadgets share a `gadget-cooldown`.

## Points

`points` · `modules/points.yml`

A server-wide currency. Other modules pay into it (parkour, daily rewards, votes) and the shop spends it. Configure the starting balance, autosave interval and the currency's singular and plural names. Staff manage balances with `/pointsadmin`.

## Shop

`shop` · `modules/shop.yml`

A GUI shop where players spend Points. Entries are either one-time unlocks (`repeatable: false`, shown as owned afterwards) or repeatable purchases. Each entry runs commands from the console when bought:

```yaml
shop:
  hearts-trail:
    category: cosmetics
    icon: POPPY
    name: "&#A0B4C8&lHearts Trail"
    price: 2500
    repeatable: false
    permission: ""
    commands:
      - "lp user {player} permission set glacierhub.cosmetics.particle.hearts true"
```

## Parkour

`parkour` · `modules/parkour.yml`

Courses are built in-game: create a course, set the start, add checkpoints and set the finish. Runs are timed, and personal bests are stored. A player who drops `fall-threshold` blocks below the lowest point they've reached is sent back to their last checkpoint. Flying, gliding or teleporting during a run ends it.

Rewards are set per course in `parkour.yml` after you build it: `points` are paid on every finish and `first-clear-commands` run once per player.

```text
/parkour create lobby_easy
/parkour setstart lobby_easy
/parkour addcheckpoint lobby_easy
/parkour setfinish lobby_easy
/parkour enable lobby_easy
```

## Leaderboards

`leaderboards` · `modules/leaderboards.yml`

One menu with top Points balances, top voters and the fastest time on each parkour course, with player heads. `entries-per-leaderboard` sets how many places are shown.

## Friends

`friends` · `modules/friends.yml`

Friend requests, a friends list and teleporting to friends with `/f`. Players see how many friends are online when they join. Settings include `max-friends` (0 for no limit), `request-cooldown` and `teleport-cooldown`.

## Vote Rewards

`voterewards` · `modules/voterewards.yml`

Needs Votifier or NuVotifier. Runs reward commands for each vote, pays out votes cast while the player was offline, and can broadcast votes. When the server-wide total reaches `vote-party.goal`, a Vote Party runs its own commands.

## Rewards

`rewards` · `modules/rewards.yml`

Daily login streaks. Each tier is a streak day with commands to run. If `reset-after-days` or more days pass between logins, the streak starts over. The default and lowest value, 2, means missing a single day resets it.

```yaml
general:
  reset-after-days: 2

tiers:
  "1":
    display: "&#A0B4C8100 Points"
    commands:
      - "glacierpointsadmin give {player} 100 -s"
  "7":
    display: "&#A0B4C81,000 Points"
    commands:
      - "glacierpointsadmin give {player} 1000 -s"
```

## Social

`social` · `modules/social.yml`

`/msg` and `/reply` for private messages, and `/report <player> <reason>`, which alerts every online player with `glacierhub.staff.social.reports`. With GlacierStaff installed, reports go into its queue and private messages show up in Social Spy.

## Custom GUI

`customgui` · `modules/customgui.yml`

Menus you define in YAML and open with `/gui <menu>`. Every slot can play a sound, close the menu and run commands as the player or the console. See [hotbar items and menus](/docs/hub/hotbar-and-menus).

## Maintenance

`maintenance` · `modules/maintenance.yml`

`/maintenance on` locks the server to players with `glacierhub.staff.maintenance.bypass` and kicks everyone else. It has its own kick message and MOTD, and the state is stored, so it stays on after a restart.

## Announcer

`announcer` · `modules/announcer.yml`

Chat announcements every `interval`, either `sequential` or random. PlaceholderAPI works inside them.

## Utilities

`utilities` · `modules/utilities.yml`

The movement and lobby-behaviour bundle:

- **Pearl Dash**: dash up to 8 blocks where you look on a smooth arc. Sneak to stop mid-air.
- **Double jump**, **fly** (with `glacierhub.fly`) and **hub speed**.
- **PvP mode**: right-click the sword to get a kit after a countdown. Switching away from the sword cancels it. Your inventory is saved first and comes back when you leave PvP.
- **Player hider**, which also hides players who join afterwards.
- **Join and leave messages**, join sounds and an MOTD.
- **Void rescue**: players who fall past the world's lowest block plus `no-void.threshold` are sent to spawn. The default, `-10`, means 10 blocks under the floor, whatever the world's height.
- **Inventory clear on join**.

All of it is limited by `general.worlds` and `general.excluded-worlds`.

## Protections

`protections` · `modules/protections.yml`

Stops block breaking and placing, damage, hunger, item drops, pickups, interaction and weather, and can lock the time of day. Each protection can be turned on separately and has its own message. `glacierhub.staff.protections.bypass` ignores all of them. Uses the same world scope as Utilities.

## Spawn

`spawn` · `modules/spawn.yml`

Set the spawn with `/setspawn`. `lifecycle.join` decides whether players are sent there on every join (`ALWAYS`), only their first (`FIRST_JOIN`) or never (`NEVER`), and `lifecycle.respawn` whether respawns go there. `/spawn` has a warmup that cancels if the player moves or takes damage, plus a cooldown.

## Custom Items

`customitems` · `modules/customitems.yml`

Hotbar items that run commands. Each has a slot, material, name, lore, permission, cooldown and executor. Items are given on join and respawn and can be locked in place. Renaming some other item to match can't trigger them, since they're identified by an internal tag, not by name.

## Scoreboard

`scoreboard` · `modules/scoreboard.yml`

A sidebar that updates without flickering, with PlaceholderAPI support. Players can toggle it with `/sb`. Not available on Folia.

## Tab

`tab` · `modules/tab.yml`

Tab list header and footer. Add `frames` to animate them. Refreshes every `refresh-interval`.

## Chat Format

`chatformat` · `modules/chatformat.yml`

A default chat format plus optional profiles. Each profile has a `format`, and can apply by `permission` or by `worlds`, with `priority` deciding which wins when several match.
