class WelcomeEvent extends Event

Event dispatched whenever a new user is created

Methods

__construct(string $message, Player $player)

Create a new event

string
getMessage()

Get the welcome message

getPlayer()

Get the new player

notify(string $type)

Send a notification to the players affected by this event

Details

at line line 31
__construct(string $message, Player $player)

Create a new event

Parameters

string $message The welcome message
Player $player The new player

at line line 42
string getMessage()

Get the welcome message

Return Value

string

at line line 52
Player getPlayer()

Get the new player

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