Package net.ess3.api.events
Class NickChangeEvent
java.lang.Object
org.bukkit.event.Event
net.ess3.api.events.StateChangeEvent
net.ess3.api.events.NickChangeEvent
- All Implemented Interfaces:
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the user who CAUSED the state change.Get the user who is AFFECTED by the state change.static HandlerList
getValue()
Methods inherited from class net.ess3.api.events.StateChangeEvent
isCancelled, setCancelled
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
NickChangeEvent
-
-
Method Details
-
getValue
-
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 classStateChangeEvent
- Returns:
- The user who caused the state change.
-
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 classStateChangeEvent
- Returns:
- The user who is affected by the state change.
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-