class TeamKickEvent extends Event

Event announced when someone a player is kicked from a team

Methods

__construct(Team $team, Player $kicked, Player $kicker)

Create a new event

getTeam()

Get the team from which the player was kicked

getKicked()

Get the player who was kicked

getKicker()

Get the player who issued the kick

getPlayer()

Get the player who was kicked

notify(string $type)

Send a notification to the players affected by this event

Details

at line line 37
__construct(Team $team, Player $kicked, Player $kicker)

Create a new event

Parameters

Team $team The team from which the player was kicked
Player $kicked The player who was kicked
Player $kicker The player who issued the kick

at line line 49
Team getTeam()

Get the team from which the player was kicked

Return Value

Team

at line line 59
Player getKicked()

Get the player who was kicked

Return Value

Player

at line line 69
Player getKicker()

Get the player who issued the kick

Return Value

Player

at line line 81
Player getPlayer()

Get the player who was kicked

Alias for TeamKickEvent::getKicked()

Return Value

Player $player

at line line 89
notify(string $type)

Send a notification to the players affected by this event

Parameters

string $type The type of the event