Skip to Content
MineDuels

Queue signs

Signs that join a queue on click and show how many players wait.

A queue sign is a normal sign that joins a queue when a player right-clicks it. Its four lines update on their own and show the kit, how many players wait and a call to action.

Make one

  1. Place a sign and look at it from up to 6 blocks away.
  2. Run /md sign queue <mode> <kit> (needs mineduels.admin).
/md sign queue ranked nodebuff
/md sign queue unranked-2v2 sumo
ModeQueue
unrankedUnranked 1v1
rankedRanked 1v1
unranked-2v2Unranked 2v2
ranked-2v2Ranked 2v2

The kit must exist. The sign is waxed, so players cannot edit the text. Run the command again on the same sign to change its queue.

/md sign list      lists every queue sign with its world, position, mode and kit
/md sign remove    removes the queue sign you look at (the sign stays as a normal sign)

Signs are saved in signs.yml in the plugin folder, so they survive restarts. Only an admin (mineduels.admin) in creative mode can break a queue sign: a left click removes the link and the sign, and they get queue-sign.removed. For everyone else the click and the break are cancelled. A sign whose block is gone is unlinked and removed from signs.yml.

What players see

[Queue]
NoDebuff
3/2 players
Click to join
Player actionResult
Right click or left clickJoins the queue, with the usual checks (same as /queue)
Click while already in that queueLeaves it
Sneak and clickLeaves it

Clicks are limited to a short gap per player. The count on the sign updates at once after a click, then on every refresh.

Settings

In matchmaking.yml:

queue-signs:
  refresh-seconds: 3
  both-sides: true
KeyDefaultMeaning
refresh-seconds3How often the signs update, 1 to 60. A sign is only rewritten when its text changed
both-sidestrueWrite the text on the back of the sign as well

Reload with /md reload.

Wording

The lines are in messages.yml under queue-sign:

queue-sign:
  mode-unranked: "Unranked"
  mode-ranked: "Ranked"
  mode-unranked-2v2: "Unranked 2v2"
  mode-ranked-2v2: "Ranked 2v2"
  line-1: "<dark_blue><bold>[Queue]"
  line-2: "<black><kit_display>"
  line-3: "<dark_gray><queued>/<needed> players"
  line-4: "<dark_green>Click to join"
  unavailable: "<dark_red>Unavailable"

The lines use <kit_display>, <queued> and <needed>. <mode> is available in queue-sign.removed. unavailable replaces the lines of a sign whose queue cannot run. Example with a different third line:

queue-sign:
  line-1: "<dark_blue><bold>[Duels]"
  line-3: "<dark_gray>Waiting: <queued>"

On a network

On a cross-server lobby the count of a sign comes from the queue the plugin keeps for the network, so players who queue on other lobbies are counted. Put signs on lobbies. A sign on a game server joins that server's own local queue, which is not used for network matches.

Related: Queue menus, Matchmaking, Messages.

On this page