endstone::PlayerSkinChangeEvent
Called when a player changes their skin.
Bases: endstone::Cancellable< PlayerEvent >
Functions:
Name | Description |
---|---|
PlayerSkinChangeEvent | |
getNewSkin | Gets the player’s new skin. |
getSkinChangeMessage | Gets the message to send to all online players for this skin change. |
setSkinChangeMessage | Sets the message to send to all online players for this skin change. |
PlayerSkinChangeEvent
PlayerSkinChangeEvent(Player &player, Skin new_skin,
std::optional<Message> message)
getNewSkin
Skin getNewSkin() const
Gets the player’s new skin.
Returns:
The skin that will be applied.
getSkinChangeMessage
std::optional<Message> getSkinChangeMessage() const
Gets the message to send to all online players for this skin change.
Returns:
Message to appear to other players on the server.
setSkinChangeMessage
void setSkinChangeMessage(std::optional<Message> message)
Sets the message to send to all online players for this skin change.
Parameters:
message
Message to appear to other players on the server.
Last updated on