endstone::PlayerGameModeChangeEvent
Called when the GameMode of the player is changed.
Bases: endstone::Cancellable< PlayerEvent >
Attributes:
Name | Description |
---|---|
NAME |
Functions:
Name | Description |
---|---|
PlayerGameModeChangeEvent | |
getEventName | |
getNewGameMode | Gets the GameMode the player is switched to. |
NAME
const std::string endstone::PlayerGameModeChangeEvent::NAME;
PlayerGameModeChangeEvent
PlayerGameModeChangeEvent(Player &player, GameMode new_game_mode)
getEventName
std::string getEventName() override const
Gets a user-friendly identifier for this event.
Returns:
name of this event
getNewGameMode
GameMode getNewGameMode() const
Gets the GameMode the player is switched to.
Returns:
player’s new GameMode
Last updated on