Constants

PLUGIN_ID

PLUGIN_ID

PLUGIN_VERSION

PLUGIN_VERSION

PLUGIN_NAME

PLUGIN_NAME

PLUGIN_AUTHOR

PLUGIN_AUTHOR

SETTING_AFK_FORCE_SPEC

SETTING_AFK_FORCE_SPEC

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

unload()

unload() 

Unload the plugin and its Resources

chat_me()

chat_me(array  $chat, \ManiaControl\Players\Player  $player) 

Builds a chat message starting with the player's nickname, can used to express emotions

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_hi()

chat_hi(array  $chat, \ManiaControl\Players\Player  $player) 

Hello Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_bye()

chat_bye(array  $chat, \ManiaControl\Players\Player  $player) 

Bye Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_thx()

chat_thx(array  $chat, \ManiaControl\Players\Player  $player) 

Thx Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_gg()

chat_gg(array  $chat, \ManiaControl\Players\Player  $player) 

Good Game Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_gl()

chat_gl(array  $chat, \ManiaControl\Players\Player  $player) 

Good Luck Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_hf()

chat_hf(array  $chat, \ManiaControl\Players\Player  $player) 

Have Fun Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_glhf()

chat_glhf(array  $chat, \ManiaControl\Players\Player  $player) 

Good Luck and Have Fun Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_ns()

chat_ns(array  $chat, \ManiaControl\Players\Player  $player) 

Nice Shot Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_n1()

chat_n1(array  $chat, \ManiaControl\Players\Player  $player) 

Nice one Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_wp()

chat_wp(array  $chat, \ManiaControl\Players\Player  $player) 

Well Played message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_lol()

chat_lol(array  $chat, \ManiaControl\Players\Player  $player) 

Lol! Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_lool()

chat_lool(array  $chat, \ManiaControl\Players\Player  $player) 

LooOOooL! Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_brb()

chat_brb(array  $chat, \ManiaControl\Players\Player  $player) 

Be right back Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_bgm()

chat_bgm(array  $chat, \ManiaControl\Players\Player  $player) 

Bad game for me Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_bootme()

chat_bootme(array  $chat, \ManiaControl\Players\Player  $player) 

Leave the server with an Bootme Message

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_ragequit()

chat_ragequit(array  $chat, \ManiaControl\Players\Player  $player) 

Leave the server with an Ragequit

Parameters

array $chat
\ManiaControl\Players\Player $player

chat_afk()

chat_afk(array  $chat, \ManiaControl\Players\Player  $player) 

Afk Message and force player to spec

Parameters

array $chat
\ManiaControl\Players\Player $player

getTarget()

getTarget(mixed  $login) : mixed

Checks if a Player is in the PlayerList and returns the nickname if he is, can be called per login, pid or nickname or lj for (last joined)

Parameters

mixed $login

Returns

mixed

sendChat()

sendChat(  $msg, \ManiaControl\Players\Player  $player, boolean  $prefix = false) 

Checks if the Player is Muted and sends the Chat if he isnt

Parameters

$msg
\ManiaControl\Players\Player $player
boolean $prefix