Constants

PLUGIN_ID

PLUGIN_ID

PLUGIN_VERSION

PLUGIN_VERSION

PLUGIN_NAME

PLUGIN_NAME

PLUGIN_AUTHOR

PLUGIN_AUTHOR

TABLE_RANK

TABLE_RANK

RANKING_TYPE_RECORDS

RANKING_TYPE_RECORDS

RANKING_TYPE_RATIOS

RANKING_TYPE_RATIOS

RANKING_TYPE_POINTS

RANKING_TYPE_POINTS

SETTING_RANKING_TYPE

SETTING_RANKING_TYPE

SETTING_MIN_HITS_RATIO_RANKING

SETTING_MIN_HITS_RATIO_RANKING

SETTING_MIN_HITS_POINTS_RANKING

SETTING_MIN_HITS_POINTS_RANKING

SETTING_MIN_REQUIRED_RECORDS

SETTING_MIN_REQUIRED_RECORDS

SETTING_MAX_STORED_RECORDS

SETTING_MAX_STORED_RECORDS

CB_RANK_BUILT

CB_RANK_BUILT

Properties

$recordCount

$recordCount : 

Type

Methods

prepare()

prepare(\ManiaControl\ManiaControl  $maniaControl) 

Prepare the Plugin

Parameters

\ManiaControl\ManiaControl $maniaControl

getId()

getId() : integer

Get plugin id

Returns

integer

getName()

getName() : string

Get Plugin Name

Returns

string

getVersion()

getVersion() : string

Get Plugin Version

Returns

string

getAuthor()

getAuthor() : string

Get Plugin Author

Returns

string

getDescription()

getDescription() : string

Get Plugin Description

Returns

string

load()

load(\ManiaControl\ManiaControl  $maniaControl) : boolean

Load the plugin

Parameters

\ManiaControl\ManiaControl $maniaControl

Returns

boolean

unload()

unload() 

Unload the plugin and its Resources

handlePlayerConnect()

handlePlayerConnect(\ManiaControl\Players\Player  $player) 

Handle PlayerConnect callback

Parameters

\ManiaControl\Players\Player $player

showRank()

showRank(\ManiaControl\Players\Player  $player) 

Shows the serverRank to a certain Player

Parameters

\ManiaControl\Players\Player $player

showNextRank()

showNextRank(\ManiaControl\Players\Player  $player) : boolean

Show which Player is next ranked to you

Parameters

\ManiaControl\Players\Player $player

Returns

boolean

handleEndMap()

handleEndMap() 

Show Ranks on Map End

command_showRank()

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

Shows the current Server-Rank

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_nextRank()

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

Show the next better ranked player

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_topRanks()

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

Handles /topranks|top100 command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

initTables()

initTables() 

Create necessary database tables

getRankingsTypeArray()

getRankingsTypeArray() : array<mixed,array>

Get the RankingsTypeArray

Returns

array<mixed,array>

resetRanks()

resetRanks() 

Resets and rebuilds the Ranking

showTopRanksList()

showTopRanksList(\ManiaControl\Players\Player  $player) 

Provide a ManiaLink window with the top ranks to the player

Parameters

\ManiaControl\Players\Player $player