Class SettingChangeEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.settings.SettingChangeEvent
Called after an editable
settings.yml value was changed - in the settings menu or
through SettingsService#set - saved and applied to the running server.
A notification. Values are as stored; Locations are the stored objects, so
copy them before changing them.
Main thread; only fired while a listener is registered.
- Since:
- 1.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionSettingChangeEvent(@NotNull String path, @Nullable Object previousValue, @Nullable Object newValue, boolean applied) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.The value now stored; empty when the setting was cleared.@NotNull StringgetPath()The setting'ssettings.ymlpath.The value before, when there was one.booleanWhether the running server was refreshed; false when that failed and a restart applies it.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
SettingChangeEvent
-
-
Method Details
-
getPath
The setting'ssettings.ymlpath. -
getPreviousValue
The value before, when there was one. -
getNewValue
The value now stored; empty when the setting was cleared. -
isApplied
public boolean isApplied()Whether the running server was refreshed; false when that failed and a restart applies it. -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-