Skip to Content
⚠ Under Construction
ReferenceC++ APIPlayerSkinChangeEvent

endstone::PlayerSkinChangeEvent

Called when a player changes their skin.

Bases: endstone::Cancellable< PlayerEvent >

Functions:

NameDescription
PlayerSkinChangeEvent
getNewSkinGets the player’s new skin.
getSkinChangeMessageGets the message to send to all online players for this skin change.
setSkinChangeMessageSets 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