- All Implemented Interfaces:
PlayerProperties, set or removed.
It's possible that this event might get called async.
Nested Class Summary
Method SummaryModifier and TypeMethodDescription
getKey()Get the key of the property of who the value might change
@Nullable StringGet the new value that's on being planned to be set.
@Nullable StringReturns the previous value that was set.
voidModify the new value to be something else.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPropertiespublic PlayerProperties getProperties()
- The PlayerProperties instance involved in this event
getKeypublic String getKey()Get the key of the property of who the value might change
- The key of the property
getOldValue@Nullable public @Nullable String getOldValue()Returns the previous value that was set.
It is possible that it is null. In that case, it wasn't a part of the properties map.
- The previous value,
nullwhen it didn't exist before
getNewValue@Nullable public @Nullable String getNewValue()Get the new value that's on being planned to be set.
It is possible that the new value may be null, which means that it is getting removed.
- The new value. May be
null, in which case it gets removed
setNewValuepublic void setNewValue
(@Nullable @Nullable String number)Modify the new value to be something else.
Set it to
nullto remove it.
number- The new "new value". May be
getHandlerspublic HandlerList getHandlers()
getHandlerListpublic static HandlerList getHandlerList()