Interface PlayerStateChangedEvent
- All Superinterfaces:
Event
,ServerEvent
Called when a player changes his state.
For example if voice chat connects/disconnects, the player joins/leaves a group or disables voice chat.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Methods inherited from interface de.maxhenkel.voicechat.api.events.Event
cancel, isCancellable, isCancelled
Methods inherited from interface de.maxhenkel.voicechat.api.events.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
-