Constants

ACTION_SET_PAUSE

ACTION_SET_PAUSE

ACTION_EXTEND_WARMUP

ACTION_EXTEND_WARMUP

ACTION_END_WARMUP

ACTION_END_WARMUP

ACTION_CANCEL_VOTE

ACTION_CANCEL_VOTE

CB_VOTE_CANCELLED

CB_VOTE_CANCELLED

SETTING_PERMISSION_CANCEL_VOTE

SETTING_PERMISSION_CANCEL_VOTE

SETTING_PERMISSION_SET_PAUSE

SETTING_PERMISSION_SET_PAUSE

SETTING_PERMISSION_HANDLE_WARMUP

SETTING_PERMISSION_HANDLE_WARMUP

SETTING_PERMISSION_SHOW_SYSTEMINFO

SETTING_PERMISSION_SHOW_SYSTEMINFO

SETTING_PERMISSION_SHUTDOWN_SERVER

SETTING_PERMISSION_SHUTDOWN_SERVER

SETTING_PERMISSION_CHANGE_SERVERSETTINGS

SETTING_PERMISSION_CHANGE_SERVERSETTINGS

Properties

$serverShutdownTime

$serverShutdownTime : 

Type

$serverShutdownEmpty

$serverShutdownEmpty : 

Type

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Create a new server commands instance

Parameters

\ManiaControl\ManiaControl $maniaControl

handleOnInit()

handleOnInit() 

Handle ManiaControl OnInit Callback

commandCancelVote()

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

Handle //cancelvote command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

commandExtendWarmup()

commandExtendWarmup(array  $callback, \ManiaControl\Players\Player  $player) 

Extend the WarmUp

Parameters

array $callback
\ManiaControl\Players\Player $player

commandEndWarmup()

commandEndWarmup(array  $callback, \ManiaControl\Players\Player  $player) 

End the WarmUp

Parameters

array $callback
\ManiaControl\Players\Player $player

setPause()

setPause(array  $callback, \ManiaControl\Players\Player  $player) 

Pause the current game

Parameters

array $callback
\ManiaControl\Players\Player $player

each5Seconds()

each5Seconds() 

Check Stuff each 5 Seconds

commandSystemInfo()

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

Handle //systeminfo command

Parameters

array $chat
\ManiaControl\Players\Player $player

commandShutdownServer()

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

Handle //shutdownserver command

Parameters

array $chat
\ManiaControl\Players\Player $player

commandSetServerName()

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

Handle //setservername command

Parameters

array $chat
\ManiaControl\Players\Player $player

commandSetPwd()

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

Handle //setpwd command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

commandSetSpecPwd()

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

Handle //setspecpwd command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

commandSetMaxPlayers()

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

Handle //setmaxplayers command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

commandSetMaxSpectators()

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

Handle //setmaxspectators command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

updateCancelVoteMenuItem()

updateCancelVoteMenuItem() 

Add the cancel vote menu item

updateWarmUpMenuItems()

updateWarmUpMenuItems() 

Manage the WarmUp related menu items

shutdownServer()

shutdownServer(string  $login = '-') 

Perform server shutdown

Parameters

string $login