Interface PlayerStateChangedEvent

All Superinterfaces:
Event, ServerEvent

public interface PlayerStateChangedEvent extends 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 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

      @Nullable VoicechatConnection getConnection()
      Returns:
      the connection of the player