Constants

ACTION_OPEN_MAPLIST

ACTION_OPEN_MAPLIST

ACTION_OPEN_XLIST

ACTION_OPEN_XLIST

ACTION_RESTART_MAP

ACTION_RESTART_MAP

ACTION_SKIP_MAP

ACTION_SKIP_MAP

ACTION_SHOW_AUTHOR

ACTION_SHOW_AUTHOR

Properties

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new map commands instance

Parameters

\ManiaControl\ManiaControl $maniaControl

command_ShowNextMap()

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

Show which map is the next

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_RemoveMap()

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

Handle //removemap command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_EraseMap()

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

Handle //erasemap command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_ShuffleMaps()

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

Handle shufflemaps command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_AddMap()

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

Handle addmap command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_NextMap()

command_NextMap(array  $chat, \ManiaControl\Players\Player  $player) 

Handle /nextmap Command

Parameters

array $chat
\ManiaControl\Players\Player $player

command_RestartMap()

command_RestartMap(array  $chat, \ManiaControl\Players\Player  $player) 

Handle restartmap command

Parameters

array $chat
\ManiaControl\Players\Player $player

command_ReplayMap()

command_ReplayMap(array  $chat, \ManiaControl\Players\Player  $player) 

Handle replaymap command

Parameters

array $chat
\ManiaControl\Players\Player $player

command_WriteMapList()

command_WriteMapList(array  $chat, \ManiaControl\Players\Player  $player) 

Handle writemaplist command

Parameters

array $chat
\ManiaControl\Players\Player $player

command_ReadMapList()

command_ReadMapList(array  $chat, \ManiaControl\Players\Player  $player) 

Handle readmaplist command

Parameters

array $chat
\ManiaControl\Players\Player $player

handleManialinkPageAnswer()

handleManialinkPageAnswer(array  $callback) 

Handle ManialinkPageAnswer Callback

Parameters

array $callback

command_List()

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

Handle /maps command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_xList()

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

Handle ManiaExchange list command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

initActionsMenuButtons()

initActionsMenuButtons() 

Add all Actions Menu Buttons

showMapListAuthor()

showMapListAuthor(string  $author, \ManiaControl\Players\Player  $player) 

Show the Player a List of Maps from the given Author

Parameters

string $author
\ManiaControl\Players\Player $player

showMapListKarma()

showMapListKarma(boolean  $best, \ManiaControl\Players\Player  $player) 

Show a Karma based MapList

Parameters

boolean $best
\ManiaControl\Players\Player $player

showMapListDate()

showMapListDate(boolean  $newest, \ManiaControl\Players\Player  $player) 

Show a Date based MapList

Parameters

boolean $newest
\ManiaControl\Players\Player $player