Constants

VERSION

VERSION

API_VERSION

API_VERSION

MIN_DEDIVERSION

MIN_DEDIVERSION

SCRIPT_TIMEOUT

SCRIPT_TIMEOUT

URL_WEBSERVICE

URL_WEBSERVICE

SETTING_PERMISSION_SHUTDOWN

SETTING_PERMISSION_SHUTDOWN

SETTING_PERMISSION_RESTART

SETTING_PERMISSION_RESTART

Properties

$config

$config : \SimpleXMLElement

Type

\SimpleXMLElement

$dedicatedServerBuildVersion

$dedicatedServerBuildVersion : 

Type

$requestQuitMessage

$requestQuitMessage : 

Type

Methods

getUsageInformation()

getUsageInformation() 

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

__construct()

__construct() 

Construct a new ManiaControl instance

quit()

quit(string  $message = null, boolean  $errorPrefix = false) 

Quit ManiaControl and log the given message

Parameters

string $message
boolean $errorPrefix

log()

log(string  $message, boolean  $stripCodes = false) 

Print a message to console and log

Parameters

string $message
boolean $stripCodes

getConfig()

getConfig() : \SimpleXMLElement

Return the config

Returns

\SimpleXMLElement

checkConnection()

checkConnection() 

Check connection

commandVersion()

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

Handle Version Command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

commandRestart()

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

Handle Restart AdminCommand

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

restart()

restart(string  $message = null) 

Restart ManiaControl

Parameters

string $message

commandShutdown()

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

Handle Shutdown Command

Parameters

array $chat
\ManiaControl\Players\Player $player

requestQuit()

requestQuit(mixed  $message = true) 

Request ManiaControl to quit

Parameters

mixed $message

run()

run() 

Run ManiaControl

getDedicatedServerBuildVersion()

getDedicatedServerBuildVersion() : string

Get The Build Version of the Dedicated Server

Returns

string

handleServerStopCallback()

handleServerStopCallback() 

Handle Server Stop Callback

loadConfig()

loadConfig() 

Load the Config XML-File

connect()

connect() 

Connect to ManiaPlanet server

loop()

loop() 

Perform the Main Loop