Constants

ACTION_FORCE_RED

ACTION_FORCE_RED

ACTION_FORCE_BLUE

ACTION_FORCE_BLUE

ACTION_FORCE_SPEC

ACTION_FORCE_SPEC

ACTION_FORCE_SPEC_VOTE

ACTION_FORCE_SPEC_VOTE

ACTION_FORCE_PLAY

ACTION_FORCE_PLAY

ACTION_PLAYER_ADV

ACTION_PLAYER_ADV

ACTION_CLOSE_PLAYER_ADV

ACTION_CLOSE_PLAYER_ADV

ACTION_MUTE_PLAYER

ACTION_MUTE_PLAYER

ACTION_UNMUTE_PLAYER

ACTION_UNMUTE_PLAYER

ACTION_WARN_PLAYER

ACTION_WARN_PLAYER

ACTION_KICK_PLAYER

ACTION_KICK_PLAYER

ACTION_KICK_PLAYER_VOTE

ACTION_KICK_PLAYER_VOTE

ACTION_BAN_PLAYER

ACTION_BAN_PLAYER

ACTION_ADD_AS_MASTER

ACTION_ADD_AS_MASTER

ACTION_ADD_AS_ADMIN

ACTION_ADD_AS_ADMIN

ACTION_ADD_AS_MOD

ACTION_ADD_AS_MOD

ACTION_REVOKE_RIGHTS

ACTION_REVOKE_RIGHTS

ACTION_OPEN_PLAYER_DETAILED

ACTION_OPEN_PLAYER_DETAILED

ACTION_SPECTATE_PLAYER

ACTION_SPECTATE_PLAYER

DEFAULT_CUSTOM_VOTE_PLUGIN

DEFAULT_CUSTOM_VOTE_PLUGIN

SHOWN_MAIN_WINDOW

SHOWN_MAIN_WINDOW

MAX_PLAYERS_PER_PAGE

MAX_PLAYERS_PER_PAGE

Properties

$playersListShown

$playersListShown : 

Type

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new PlayerList instance

Parameters

\ManiaControl\ManiaControl $maniaControl

addPlayerToShownList()

addPlayerToShownList(\ManiaControl\Players\Player  $player, integer  $showStatus = self::SHOWN_MAIN_WINDOW) 

Add Player to Shown List

Parameters

\ManiaControl\Players\Player $player
integer $showStatus

handleWidgetOpened()

handleWidgetOpened(\ManiaControl\Players\Player  $player,   $openedWidget) 

Unset the player if he opened another Main Widget

Parameters

\ManiaControl\Players\Player $player
$openedWidget

closePlayerAdvancedWidget()

closePlayerAdvancedWidget(array  $callback, \ManiaControl\Players\Player  $player) 

Closes the player advanced widget widget

Parameters

array $callback
\ManiaControl\Players\Player $player

showPlayerList()

showPlayerList(\ManiaControl\Players\Player  $player) 

Show the PlayerList Widget to the Player

Parameters

\ManiaControl\Players\Player $player

showAdvancedPlayerWidget()

showAdvancedPlayerWidget(\ManiaControl\Players\Player  $admin, string  $login) : \FML\Controls\Frame

Extra window with special actions on players like warn,kick, ban, authorization levels.

..

Parameters

\ManiaControl\Players\Player $admin
string $login

Returns

\FML\Controls\Frame

handleManialinkPageAnswer()

handleManialinkPageAnswer(array  $callback) 

Called on ManialinkPageAnswer

Parameters

array $callback

advancedPlayerWidget()

advancedPlayerWidget(\ManiaControl\Players\Player  $caller, string  $login) 

Display the Advanced Player Window

Parameters

\ManiaControl\Players\Player $caller
string $login

updateWidget()

updateWidget(\ManiaControl\Players\Player  $player) 

Reopen the widget on PlayerInfoChanged / Player Connect and Disconnect

Parameters

\ManiaControl\Players\Player $player