Added 'getQueueLength' to room
@@ -26,6 +26,16 @@ Clear the queue.
|
|||||||
Room.clearQueue();
|
Room.clearQueue();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### getQueueLength
|
||||||
|
|
||||||
|
Get the amount of players in the waiting queue.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
Room.getQueueLength();
|
||||||
|
```
|
||||||
|
|
||||||
|
**Return** number _Amount of players in the queue._
|
||||||
|
|
||||||
## Events
|
## Events
|
||||||
|
|
||||||
### on: playerJoinQueue
|
### on: playerJoinQueue
|
||||||
|
|||||||
Reference in New Issue
Block a user