Class NickChangeEvent

All Implemented Interfaces:
Cancellable

public class NickChangeEvent extends StateChangeEvent implements Cancellable
Fired when a player's nickname is changed. WARNING: The values of getAffected() and getController() are inverted due to a long-standing implementation bug.
  • Constructor Details

    • NickChangeEvent

      public NickChangeEvent(IUser affected, IUser controller, String value)
  • Method Details

    • getValue

      public String getValue()
    • getAffected

      public IUser getAffected()
      Get the user who CAUSED the state change. WARNING: This method is inverted - this returns the user who caused the change.
      Overrides:
      getAffected in class StateChangeEvent
      Returns:
      The user who caused the state change.
    • getController

      public IUser getController()
      Get the user who is AFFECTED by the state change. WARNING: This method is inverted - this returns the user who was affected by the change.
      Overrides:
      getController in class StateChangeEvent
      Returns:
      The user who is affected by the state change.
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()