Class AsyncPlayerChangeOptionEvent
java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
xyz.gmitch215.socketmc.events.system.AsyncPlayerChangeOptionEvent
Called when a player changes a game option.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Gets the key of the option that was changed.Gets the new value of the option.Gets the new value of the option as a string.Gets the old value of the option.Gets the old value of the option as a string.Methods inherited from class xyz.gmitch215.socketmc.events.SocketEvent
getHandlerList, getHandlers, getPlayer, getSocketPlayer, toString
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
AsyncPlayerChangeOptionEvent
public AsyncPlayerChangeOptionEvent(@NotNull @NotNull String key, @Nullable @Nullable Object oldValue, @NotNull @NotNull String oldValueString, @Nullable @Nullable Object newValue, @NotNull @NotNull String newValueString, @NotNull @NotNull SocketPlayer player) Creates a new AsyncPlayerChangeOptionEvent.- Parameters:
player
- The player associated with this event
-
-
Method Details
-
getKey
Gets the key of the option that was changed.- Returns:
- Option Identifier Key
-
getOldValue
Gets the old value of the option.- Returns:
- Old Value
-
getOldValueString
Gets the old value of the option as a string.- Returns:
- Old Value as a String
-
getNewValue
Gets the new value of the option.- Returns:
- New Value
-
getNewValueString
Gets the new value of the option as a string.- Returns:
- New Value as a String
-