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() constGets the player’s new skin.
Returns:
The skin that will be applied.
getSkinChangeMessage
std::optional<Message> getSkinChangeMessage() constGets 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:
messageMessage to appear to other players on the server.
Last updated on