nextmap command
This commit is contained in:
1 parent
d79b6fb102
commit
a286655da5
2 files changed
+38
No files matched your search
@@ -169,6 +169,20 @@ class MapQueue implements CallbackListener, CommandListener {
|
||||
return $this->nextMap;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the first Queued Map
|
||||
*
|
||||
* @return array(Player $player, Map $map)
|
||||
*/
|
||||
public function getNextQueuedMap() {
|
||||
foreach($this->queuedMaps as $queuedMap) {
|
||||
//return the first Queued Map
|
||||
return $queuedMap;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list with the indexes of the queued maps
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user