\ManiaControl\ServerVoteRatiosMenu

Class offering a Configurator Menu for Vote Ratios

Summary

Methods
Properties
Constants
__construct()
getTitle()
getMenu()
saveConfigData()
No public properties found
SETTING_PERMISSION_CHANGE_VOTE_RATIOS
ACTION_PREFIX_VOTE_RATIO
No protected methods found
No protected properties found
N/A
getVoteCommands()
getVoteRatioForCommand()
sendInvalidValueError()
$maniaControl
N/A

Constants

SETTING_PERMISSION_CHANGE_VOTE_RATIOS

SETTING_PERMISSION_CHANGE_VOTE_RATIOS

ACTION_PREFIX_VOTE_RATIO

ACTION_PREFIX_VOTE_RATIO

Properties

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new vote ratios menu instance

Parameters

\ManiaControl\ManiaControl $maniaControl

getTitle()

getTitle() : string

Get the menu title

Returns

string

saveConfigData()

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

Save the config data

Parameters

array $configData
\ManiaControl\Players\Player $player

getVoteCommands()

getVoteCommands() : array<mixed,string>

Get the list of available vote commands

Returns

array<mixed,string>

sendInvalidValueError()

sendInvalidValueError(\ManiaControl\Players\Player  $player, string  $commandName) 

Inform the player that his entered value is invalid

Parameters

\ManiaControl\Players\Player $player
string $commandName