Interface PlayerStateChangedEvent
- All Superinterfaces:
Event, ServerEvent
Called when a player changes its state.
For example if voice chat connects/disconnects, the player joins/leaves a group or disables voice chat.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanMethods inherited from interface Event
cancel, isCancellable, isCancelledMethods inherited from interface ServerEvent
getVoicechat
-
Method Details
-
isDisabled
boolean isDisabled()- Returns:
- if the player disabled voice chat
-
isDisconnected
boolean isDisconnected()- Returns:
- if the player is disconnected from voice chat
-
getPlayerUuid
UUID getPlayerUuid()- Returns:
- the uuid of the player
-
getConnection
- Returns:
- the connection of the player
-