class TeamInviteEvent extends Event

Event dispatched when someone invites a player to a team

Methods

__construct(Invitation $invitation)

Create a new event

getInvitation()

Get the invitation

notify(string $type)

Send a notification to the players affected by this event

Details

at line line 25
__construct(Invitation $invitation)

Create a new event

Parameters

Invitation $invitation The invitation

at line line 35
Invitation getInvitation()

Get the invitation

Return Value

Invitation

at line line 43
notify(string $type)

Send a notification to the players affected by this event

Parameters

string $type The type of the event