Skip to Content
⚠ Under Construction
ReferenceC++ APIPlayerKickEvent

endstone::PlayerKickEvent

Called when a player gets kicked from the server.

Bases: endstone::Cancellable< PlayerEvent >

Functions:

NameDescription
PlayerKickEvent
getReasonGets the reason why the player is getting kicked.
setReasonSets the reason why the player is getting kicked.

PlayerKickEvent

PlayerKickEvent(Player &player, std::string reason)

getReason

std::string getReason() const

Gets the reason why the player is getting kicked.

Returns:

string kick reason

setReason

void setReason(std::string reason)

Sets the reason why the player is getting kicked.

Parameters:

  • reason kick reason
Last updated on