Skip to Content
PandaScript

Lobby and signs

Set the lobby, give players a hotbar of menu items, and place signs that join a queue.

The lobby

/pd setlobby

Sets 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.

config.yml
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

KeyMeaning
enabledTurns lobby items on.
clear-inventoryEmpties the inventory before giving the items. With false, only old lobby items are replaced.
items.<id>.slotHotbar or inventory slot, from 0. Slots 0 to 8 are the hotbar.
items.<id>.materialThe item, as a material name in capitals such as IRON_SWORD or NETHER_STAR.
items.<id>.nameDisplay name in MiniMessage.
items.<id>.actionWhat a right click does. See below.

The <id> (unranked, ranked, ...) is any name you like.

Actions

ActionWhat a right click does
queue unrankedOpens the unranked queue menu.
queue rankedOpens the ranked queue menu.
partyOpens the party menu.
leaderboardOpens the leaderboard menu.
settingsOpens 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:

config.yml
    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.

  1. Place a sign.
  2. Write the lines in the table below.
  3. Finish editing.
LineText
1[duels]
2The kit's id, for example nodebuff
3ranked for the ranked queue. Anything else, or nothing, for unranked.
4Leave 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.

On this page