Queue

The join queue on a full server. The server keeps the line, tells each waiting player their place, waiting time and any status from resources, and admits the first player when a place opens. The order is first come, first served, unless resources change it through playerQueued and playerUnqueued. To admit only listed players, use whitelist.json in the resources folder.

queue.list()

Queue.list()

Those waiting, with the next player first.

queue.setPriority()

Queue.setPriority(id, priority)

Sets a player's priority. Higher goes first, and ties go by arrival.

queue.setStatus()

Queue.setStatus(id, status)

Sets what the player's queue popup shows. Without it, the popup shows their place and time.

queue.reject()

Queue.reject(id, reason)

Turns a player away from the queue.