Constants

CB_MAPQUEUE_CHANGED

CB_MAPQUEUE_CHANGED

SETTING_SKIP_MAP_ON_LEAVE

SETTING_SKIP_MAP_ON_LEAVE

SETTING_SKIP_MAPQUEUE_ADMIN

SETTING_SKIP_MAPQUEUE_ADMIN

SETTING_MAPLIMIT_PLAYER

SETTING_MAPLIMIT_PLAYER

SETTING_MAPLIMIT_ADMIN

SETTING_MAPLIMIT_ADMIN

SETTING_BUFFERSIZE

SETTING_BUFFERSIZE

SETTING_PERMISSION_CLEAR_MAPQUEUE

SETTING_PERMISSION_CLEAR_MAPQUEUE

SETTING_PERMISSION_QUEUE_BUFFER

SETTING_PERMISSION_QUEUE_BUFFER

ADMIN_COMMAND_CLEAR_MAPQUEUE

ADMIN_COMMAND_CLEAR_MAPQUEUE

ADMIN_COMMAND_CLEAR_JUKEBOX

ADMIN_COMMAND_CLEAR_JUKEBOX

Properties

$queuedMaps

$queuedMaps : 

Type

$nextMap

$nextMap : 

Type

$buffer

$buffer : 

Type

$nextNoQueue

$nextNoQueue : 

Type

Methods

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new map queue instance

Parameters

\ManiaControl\ManiaControl $maniaControl

dontQueueNextMapChange()

dontQueueNextMapChange() 

Don't queue on the next MapChange

handleAfterInit()

handleAfterInit() 

Add current map to buffer on startup

command_ClearMapQueue()

command_ClearMapQueue(array  $chatCallback, \ManiaControl\Players\Player  $admin) 

Clear the map-queue via admin command clear map queue

Parameters

array $chatCallback
\ManiaControl\Players\Player $admin

clearMapQueue()

clearMapQueue(\ManiaControl\Players\Player  $admin = null) 

Clear the Map Queue

Parameters

\ManiaControl\Players\Player $admin

|null

command_MapQueue()

command_MapQueue(array  $chatCallback, \ManiaControl\Players\Player  $player) 

Handle the mapqueue/jukebox command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

showMapQueue()

showMapQueue(\ManiaControl\Players\Player  $player) 

Show current mapqueue in the chat

Parameters

\ManiaControl\Players\Player $player

showMapQueueManialink()

showMapQueueManialink(\ManiaControl\Players\Player  $player) 

Show current mapqueue in a manialink

Parameters

\ManiaControl\Players\Player $player

getQueueBuffer()

getQueueBuffer() : array<mixed,string>

Return the current queue buffer

Returns

array<mixed,string>

serverAddMapToMapQueue()

serverAddMapToMapQueue(  $uid) : boolean

Adds a Map to the Map-Queue from Plugins or whatever

Parameters

$uid

Returns

boolean

addMapToMapQueue()

addMapToMapQueue(string  $login, string  $uid) 

Add a Map to the map-queue

Parameters

string $login
string $uid

removeFromMapQueue()

removeFromMapQueue(\ManiaControl\Players\Player|null  $player, string  $uid) 

Remove a Map from the Map queue

Parameters

\ManiaControl\Players\Player|null $player
string $uid

getNextMap()

getNextMap() : \ManiaControl\Maps\Map

Return the next Map if the next map is a queuedmap or null if it's not

Returns

\ManiaControl\Maps\Map

getNextQueuedMap()

getNextQueuedMap() : \ManiaControl\Maps\array(Player

Return the first Queued Map

Returns

\ManiaControl\Maps\array(Player —

$player, Map $map)

getQueuedMapsRanking()

getQueuedMapsRanking() : array

Return a list with the indexes of the queued maps

Returns

array

getQueuer()

getQueuer(string  $uid) : mixed

Return the Queuer of a Map

Parameters

string $uid

Returns

mixed

printAllMaps()

printAllMaps() 

Dummy Function for testing