Constants

ID

ID

VERSION

VERSION

AUTHOR

AUTHOR

NAME

NAME

SETTING_ANNOUNCE_SERVER_DONATION

SETTING_ANNOUNCE_SERVER_DONATION

STAT_PLAYER_DONATIONS

STAT_PLAYER_DONATIONS

ACTION_DONATE_VALUE

ACTION_DONATE_VALUE

MLID_DONATE_WIDGET

MLID_DONATE_WIDGET

SETTING_DONATE_WIDGET_ACTIVATED

SETTING_DONATE_WIDGET_ACTIVATED

SETTING_DONATE_WIDGET_POSX

SETTING_DONATE_WIDGET_POSX

SETTING_DONATE_WIDGET_POSY

SETTING_DONATE_WIDGET_POSY

SETTING_DONATE_WIDGET_WIDTH

SETTING_DONATE_WIDGET_WIDTH

SETTING_DONATE_WIDGET_HEIGHT

SETTING_DONATE_WIDGET_HEIGHT

SETTING_DONATION_VALUES

SETTING_DONATION_VALUES

SETTING_MIN_AMOUNT_SHOWN

SETTING_MIN_AMOUNT_SHOWN

Properties

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

displayWidget()

displayWidget() 

Display the widget

displayDonateWidget()

displayDonateWidget(string  $login = null) 

Display the Donation Widget

Parameters

string $login

unload()

unload() 

Unload the plugin and its Resources

handleManialinkPageAnswer()

handleManialinkPageAnswer(array  $callback) 

Handle ManialinkPageAnswer Callback

Parameters

array $callback

handlePlayerConnect()

handlePlayerConnect(\ManiaControl\Players\Player  $player) 

Handle PlayerConnect callback

Parameters

\ManiaControl\Players\Player $player

command_Donate()

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

Handle /donate command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_Pay()

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

Handle //pay command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_GetPlanets()

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

Handle //getplanets command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_TopDons()

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

Handles the /topdons command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

handleDonation()

handleDonation(\ManiaControl\Players\Player  $player, integer  $amount, string  $receiver = '', string  $receiverName = null) 

Handle a Player Donation

Parameters

\ManiaControl\Players\Player $player
integer $amount
string $receiver
string $receiverName

sendDonateUsageExample()

sendDonateUsageExample(\ManiaControl\Players\Player  $player) 

Send an usage example for /donate to the player

Parameters

\ManiaControl\Players\Player $player

sendPayUsageExample()

sendPayUsageExample(\ManiaControl\Players\Player  $player) 

Send an usage example for /pay to the player

Parameters

\ManiaControl\Players\Player $player

showTopDonsList()

showTopDonsList(\ManiaControl\Players\Player  $player) 

Provide an Overview ManiaLink with Donators

Parameters

\ManiaControl\Players\Player $player