CB_SERVER_OPTION_CHANGED
CB_SERVER_OPTION_CHANGED
Class offering a Configurator Menu for Server Options
$maniaControl : \ManiaControl\ManiaControl
None found |
__construct(\ManiaControl\ManiaControl $maniaControl)
Construct a new server options menu instance
\ManiaControl\ManiaControl | $maniaControl |
None found |
saveCurrentServerOptions() : boolean
Save the current server options in case they have been changed by an external tool
None found |
loadOptionsFromDatabase() : boolean
Load options from database
None found |
getMenu(float $width, float $height, \FML\Script\Script $script, \ManiaControl\Players\Player $player) : \FML\Controls\Frame
Get the configurator menu frame
float | $width | |
float | $height | |
\FML\Script\Script | $script | |
\ManiaControl\Players\Player | $player |
None found |
saveConfigData(array $configData, \ManiaControl\Players\Player $player)
Save the config data
array | $configData | |
\ManiaControl\Players\Player | $player |
None found |
None found |
saveServerOptions(\Maniaplanet\DedicatedServer\Structures\ServerOptions $serverOptions, boolean $triggerCallbacks = false) : boolean
Save the given server options in the database
\Maniaplanet\DedicatedServer\Structures\ServerOptions | $serverOptions | |
boolean | $triggerCallbacks |
None found |
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
\Maniaplanet\DedicatedServer\Structures\ServerOptions | $newServerOptions | |
\Maniaplanet\DedicatedServer\Structures\ServerOptions | $oldServerOptions |
None found |
applyNewServerOptions(\Maniaplanet\DedicatedServer\Structures\ServerOptions $newServerOptions, \ManiaControl\Players\Player $player = null) : boolean
Apply the array of new Server Options
\Maniaplanet\DedicatedServer\Structures\ServerOptions | $newServerOptions | |
\ManiaControl\Players\Player | $player |
None found |