zones.yml
The AFK Zones menu in guis/zones.yml - layout, the zone icon, the random button and the No-Access icon.
The AFK Zones menu at guis/zones.yml. /afkzone opens it when a player can join more than one
zone. After editing, run /afkzoneadmin reload.
The menu lists every listed zone: enabled and with a Spawn. Zones the player lacks the
permission for are still shown, and flash No-Access when clicked. See
Teleports & Auto-AFK.
Title: "AFK Zones"Size: 36Item-Slots: [10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25]
Zone-Item: Material: AMETHYST_CLUSTER Name: "{zone}" Lore: - "&8AFK Zone" - "" - "&dInformation:" - "&5 - &7Reward Every: &f{reward-time}s" - "&5 - &7Players: &f{players}" - "&5 - &7World: &f{world}" - "" - "&e➥ Click to teleport!"
Items: Filler-Item: Material: BLACK_STAINED_GLASS_PANE Slots: [0-9, 17, 18, 26-30, 32-35] Name: "&r" Random-Item: Material: ENDER_PEARL Slot: 31 Name: "&d&lRandom Zone" Lore: - "&8AFK Zones" - "" - "&7Teleport to a random AFK zone" - "&7you have access to." - "" - "&e➥ Click to teleport!" Actions: - "[random]"
Temporary-Icons: No-Access: Material: BARRIER Name: "&c&lError!" Lore: - "&7You don't have access to this zone!"| Key | Description |
|---|---|
Title |
Menu title. Required. |
Size |
Inventory size, a multiple of 9 between 9 and 54. Required. |
Item-Slots |
Required. The slots zones are placed in, in order. Numbers or a-b ranges, all inside Size. More zones than slots spread over pages. |
Zone-Item |
Required. The icon every zone is drawn with, unless the zone file has its own Icon. |
Items |
Decoration and buttons. Each entry uses Slot: or Slots: and the standard item fields. |
Temporary-Icons |
Flash icons, see below. |
Zone tokens
Section titled “Zone tokens”Zone-Item and zone Icons render with:
| Token | Value |
|---|---|
{zone} |
The zone’s Display-Name. |
{zone-id} |
The zone id. |
{reward-time} |
The zone’s Reward-Time in seconds. |
{world} |
The zone’s world. |
{players} |
Players currently in the zone. |
{player} |
The viewer’s name. |
Entries under Items get {zones} (how many zones are listed), {player}, and {page}, {pages}
and {results}.
Buttons
Section titled “Buttons”An entry under Items with an Actions list runs it on click. Besides the
shared actions ([message], [sound], [close], …) the
menu understands:
| Action | Does |
|---|---|
[random] |
Teleport to a random zone the player can join. Flashes No-Access when there is none. |
[next] / [previous] |
Turn the page. |
A zone click or [random] closes the menu and starts the
teleport warmup.
Temporary-Icons
Section titled “Temporary-Icons”Flashed for two seconds in the clicked slot. Each is optional; without one nothing flashes, but the
FAILURE sound still plays.
| Key | Flashed when |
|---|---|
No-Access |
The player lacks the zone’s Permission, or [random] finds no zone they can join. |
No-Next-Page / No-Previous-Page |
A page button is clicked with no page in that direction. |
