Lobby and signs
Set the lobby, give players a hotbar of menu items, and place signs that join a queue.
The lobby
/pd setlobbySets the lobby to where you stand. You can also give a location, which works from the console: /pd setlobby <world> <x> <y> <z> [yaw] [pitch].
Players are sent to the lobby after a match, after spectating, and after getting their items back from a crash. Without a lobby, they go back to where they were before.
The lobby is saved in config.yml as the lobby key.
Lobby items
Lobby items are a hotbar of menu items players get while they are in the lobby's world. They are meant for practice servers and are off by default.
lobby-items:
enabled: false
clear-inventory: true
items:
unranked: { slot: 0, material: IRON_SWORD, name: "<green>Unranked queue", action: "queue unranked" }
ranked: { slot: 1, material: DIAMOND_SWORD, name: "<aqua>Ranked queue", action: "queue ranked" }
party: { slot: 4, material: NAME_TAG, name: "<yellow>Party", action: "party" }
leaderboard: { slot: 7, material: BOOK, name: "<gold>Leaderboards", action: "leaderboard" }
settings: { slot: 8, material: COMPARATOR, name: "<gray>Settings", action: "settings" }With enabled: true and clear-inventory: true, the inventory of anyone in the lobby's world is emptied when they get the items. Leave lobby items off on a server where players keep items, such as survival.
When players get them
When enabled is true and a lobby is set:
- Every time a player joins, they are sent to the lobby and given the items.
- After a match or spectating, players who land in the lobby's world get the items.
Players outside the lobby's world don't get them.
The item settings
| Key | Meaning |
|---|---|
enabled | Turns lobby items on. |
clear-inventory | Empties the inventory before giving the items. With false, only old lobby items are replaced. |
items.<id>.slot | Hotbar or inventory slot, from 0. Slots 0 to 8 are the hotbar. |
items.<id>.material | The item, as a material name in capitals such as IRON_SWORD or NETHER_STAR. |
items.<id>.name | Display name in MiniMessage. |
items.<id>.action | What a right click does. See below. |
The <id> (unranked, ranked, ...) is any name you like.
Actions
| Action | What a right click does |
|---|---|
queue unranked | Opens the unranked queue menu. |
queue ranked | Opens the ranked queue menu. |
party | Opens the party menu. |
leaderboard | Opens the leaderboard menu. |
settings | Opens the settings menu. |
command <command> | Runs a command as the player. Leave out the /. |
For example, to add an item that shows the player's stats:
stats: { slot: 6, material: PAPER, name: "<aqua>Your stats", action: "command stats" }Lobby items can't be dropped, moved in the inventory, or swapped to the offhand. Staff with pandaduels.admin can move them.
After changing lobby items, run /pd reload. Players get the new items the next time they are given them.
Settings menu
The settings action opens a small menu where players can:
- Turn incoming duel requests on or off (the same as
/duel toggle). - Open the kit layout editor.
Queue signs
A queue sign puts the player in a kit's queue when they right-click it.
- Place a sign.
- Write the lines in the table below.
- Finish editing.
| Line | Text |
|---|---|
| 1 | [duels] |
| 2 | The kit's id, for example nodebuff |
| 3 | ranked for the ranked queue. Anything else, or nothing, for unranked. |
| 4 | Leave empty. |
PandaDuels rewrites the sign to show [Duels], the kit's display name, Ranked or Unranked, and Click to queue, and waxes it so it can't be edited by accident.
Creating a queue sign needs pandaduels.admin. Anyone else who writes [duels] on line 1 gets You can't do that. If the kit doesn't exist, PandaDuels says so and the sign stays as plain text.
The sign remembers the kit's id. If you rename the kit's display name later, the text on the sign doesn't change; break the sign and make a new one. To remove a queue sign, break it.
Queue menus
The queue menus (from /queue, lobby items, or /queue ranked) show one icon per enabled kit with:
- How many players are queued. The icon's stack size shows the same number.
- How many are playing that kit right now.
- In the ranked menu, the player's Elo in that kit.
Clicking an icon joins that queue.