class TeamAbandonEvent extends Event

Event dispatched whenever someone leaves a team

Methods

__construct(Team $team, Player $player)

Create a new event

getTeam()

Get the team that the player abandoned

getPlayer()

Get the player who left the team

notify(string $type)

Send a notification to the players affected by this event

Details

at line line 31
__construct(Team $team, Player $player)

Create a new event

Parameters

Team $team The team that the player left
Player $player The player who abandoned the team

at line line 42
Team getTeam()

Get the team that the player abandoned

Return Value

Team

at line line 52
Player getPlayer()

Get the player who left the team

Return Value

Player

at line line 60
notify(string $type)

Send a notification to the players affected by this event

Parameters

string $type The type of the event