Constants

CB_SERVER_OPTION_CHANGED

CB_SERVER_OPTION_CHANGED

CB_SERVER_OPTIONS_CHANGED

CB_SERVER_OPTIONS_CHANGED

SETTING_PERMISSION_CHANGE_SERVER_OPTIONS

SETTING_PERMISSION_CHANGE_SERVER_OPTIONS

TABLE_SERVER_OPTIONS

TABLE_SERVER_OPTIONS

ACTION_PREFIX_OPTION

ACTION_PREFIX_OPTION

CB_SERVERSETTING_CHANGED

CB_SERVERSETTING_CHANGED

CB_SERVERSETTINGS_CHANGED

CB_SERVERSETTINGS_CHANGED

Properties

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new server options menu instance

Parameters

\ManiaControl\ManiaControl $maniaControl

getTitle()

getTitle() : string

Get the menu title

Returns

string

saveCurrentServerOptions()

saveCurrentServerOptions() : boolean

Save the current server options in case they have been changed by an external tool

Returns

boolean

onInit()

onInit() 

Handle OnInit callback

loadOptionsFromDatabase()

loadOptionsFromDatabase() : boolean

Load options from database

Returns

boolean

saveConfigData()

saveConfigData(array  $configData, \ManiaControl\Players\Player  $player) 

Save the config data

Parameters

array $configData
\ManiaControl\Players\Player $player

initTables()

initTables() : boolean

Initialize necessary database tables

Returns

boolean

saveServerOptions()

saveServerOptions(\Maniaplanet\DedicatedServer\Structures\ServerOptions  $serverOptions, boolean  $triggerCallbacks = false) : boolean

Save the given server options in the database

Parameters

\Maniaplanet\DedicatedServer\Structures\ServerOptions $serverOptions
boolean $triggerCallbacks

Returns

boolean

fillUpMandatoryOptions()

fillUpMandatoryOptions(\Maniaplanet\DedicatedServer\Structures\ServerOptions  $newServerOptions, \Maniaplanet\DedicatedServer\Structures\ServerOptions  $oldServerOptions) : \Maniaplanet\DedicatedServer\Structures\ServerOptions

Fill up the new server options object with the necessary options based on the old options object

Parameters

\Maniaplanet\DedicatedServer\Structures\ServerOptions $newServerOptions
\Maniaplanet\DedicatedServer\Structures\ServerOptions $oldServerOptions

Returns

\Maniaplanet\DedicatedServer\Structures\ServerOptions

initalizeCommunicationListenings()

initalizeCommunicationListenings() 

Initializes the communication Listenings