Constants

TEAM_BLUE

TEAM_BLUE

TEAM_RED

TEAM_RED

SPECTATOR_USER_SELECTABLE

SPECTATOR_USER_SELECTABLE

SPECTATOR_SPECTATOR

SPECTATOR_SPECTATOR

SPECTATOR_PLAYER

SPECTATOR_PLAYER

SPECTATOR_BUT_KEEP_SELECTABLE

SPECTATOR_BUT_KEEP_SELECTABLE

ECHO_WARN_PLAYER

ECHO_WARN_PLAYER

SETTING_PERMISSION_FORCE_PLAYER_PLAY

SETTING_PERMISSION_FORCE_PLAYER_PLAY

SETTING_PERMISSION_FORCE_PLAYER_TEAM

SETTING_PERMISSION_FORCE_PLAYER_TEAM

SETTING_PERMISSION_FORCE_PLAYER_SPEC

SETTING_PERMISSION_FORCE_PLAYER_SPEC

SETTING_PERMISSION_MUTE_PLAYER

SETTING_PERMISSION_MUTE_PLAYER

SETTING_PERMISSION_WARN_PLAYER

SETTING_PERMISSION_WARN_PLAYER

SETTING_PERMISSION_KICK_PLAYER

SETTING_PERMISSION_KICK_PLAYER

SETTING_PERMISSION_BAN_PLAYER

SETTING_PERMISSION_BAN_PLAYER

Properties

Methods

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new PlayerActions instance

Parameters

\ManiaControl\ManiaControl $maniaControl

forcePlayerToTeam()

forcePlayerToTeam(string  $adminLogin, string  $targetLogin, integer  $teamId, boolean  $calledByAdmin = true) : boolean

Force a Player to a certain Team

Parameters

string $adminLogin
string $targetLogin
integer $teamId
boolean $calledByAdmin

Returns

boolean

forcePlayerToPlay()

forcePlayerToPlay(string  $adminLogin, string  $targetLogin, boolean  $userIsAbleToSelect = true, boolean  $displayAnnouncement = true, boolean  $calledByAdmin = true) : boolean

Force a Player to Play

Parameters

string $adminLogin
string $targetLogin
boolean $userIsAbleToSelect
boolean $displayAnnouncement
boolean $calledByAdmin

Returns

boolean

forcePlayerToSpectator()

forcePlayerToSpectator(string  $adminLogin, string  $targetLogin, integer  $spectatorState = self::SPECTATOR_BUT_KEEP_SELECTABLE, boolean  $releaseSlot = true, boolean  $calledByAdmin = true) : boolean

Force a Player to Spectator

Parameters

string $adminLogin
string $targetLogin
integer $spectatorState
boolean $releaseSlot
boolean $calledByAdmin

Returns

boolean

unMutePlayer()

unMutePlayer(  $adminLogin,   $targetLogin, boolean  $calledByAdmin = true) : boolean

UnMute a Player

Parameters

$adminLogin
$targetLogin
boolean $calledByAdmin

Returns

boolean

mutePlayer()

mutePlayer(string  $adminLogin, string  $targetLogin, boolean  $calledByAdmin = true) : boolean

Mute a Player

Parameters

string $adminLogin
string $targetLogin
boolean $calledByAdmin

Returns

boolean

warnPlayer()

warnPlayer(string  $adminLogin, string  $targetLogin, boolean  $calledByAdmin = true) : boolean

Warn a Player

Parameters

string $adminLogin
string $targetLogin
boolean $calledByAdmin

Returns

boolean

kickPlayer()

kickPlayer(  $adminLogin,   $targetLogin, string  $message = '', boolean  $calledByAdmin = true) : boolean

Kick a Player

Parameters

$adminLogin
$targetLogin
string $message
boolean $calledByAdmin

Returns

boolean

banPlayer()

banPlayer(string  $adminLogin, string  $targetLogin, string  $message = '') 

Ban a Player

Parameters

string $adminLogin
string $targetLogin
string $message

unBanPlayer()

unBanPlayer(string  $adminLogin, string  $targetLogin) 

Unbans a Player

Parameters

string $adminLogin
string $targetLogin

grandAuthLevel()

grandAuthLevel(string  $adminLogin, string  $targetLogin, integer  $authLevel) 

Grands the Player an Authorization Level

Parameters

string $adminLogin
string $targetLogin
integer $authLevel

revokeAuthLevel()

revokeAuthLevel(string  $adminLogin, string  $targetLogin) 

Revokes all Rights from the Player

Parameters

string $adminLogin
string $targetLogin

isPlayerMuted()

isPlayerMuted(  $login) 

Check if a Player is muted

Parameters

$login