diff --git a/ModuleServerAPIGameLibRoom.md b/ModuleServerAPIGameLibRoom.md index f56109f..750ba7f 100644 --- a/ModuleServerAPIGameLibRoom.md +++ b/ModuleServerAPIGameLibRoom.md @@ -26,6 +26,16 @@ Clear the queue. Room.clearQueue(); ``` +### getQueueLength + +Get the amount of players in the waiting queue. + +```javascript +Room.getQueueLength(); +``` + +**Return** number _Amount of players in the queue._ + ## Events ### on: playerJoinQueue