Class PlayerChangeStateEvent


public final class PlayerChangeStateEvent extends PlayerEvent
Called when a player changes this state. For example, this happens if a player starts swimming, goes to bed or sits on a chair.
  • Method Details

    • getOldState

      public Player.State getOldState()
      Gets the old player state.
      Returns:
      the old player state.
    • getNewState

      public Player.State getNewState()
      Gets the new player state.
      Returns:
      the new player state.