Skip to Content
⚠ Under Construction
ReferenceC++ APIPlayerEmoteEvent

endstone::PlayerEmoteEvent

Called when a player uses an emote.

Bases: endstone::Cancellable< PlayerEvent >

Attributes:

NameDescription
NAME

Functions:

NameDescription
PlayerEmoteEvent
getEmoteIdGets the emote piece ID.
getEventName
isMutedGets the muted state for the emote.
setMutedSets the muted state for the emote.

NAME

const std::string endstone::PlayerEmoteEvent::NAME;

PlayerEmoteEvent

PlayerEmoteEvent(Player &player, std::string emote_id, bool muted)

getEmoteId

std::string getEmoteId() const

Gets the emote piece ID.

Returns:

The emote piece ID

getEventName

std::string getEventName() override const

Gets a user-friendly identifier for this event.

Returns:

name of this event

isMuted

bool isMuted() const

Gets the muted state for the emote.

This method determines whether the emote is being executed without sending a chat message about the emote.

Returns:

true if the emote is muted, false otherwise.

setMuted

void setMuted(bool muted)

Sets the muted state for the emote.

Note:

If set to true, the emote will be executed silently, and no chat messages will be sent.

Parameters:

  • muted true to mute the emote and disable chat messages, false to unmute it.
Last updated on