Package de.oliver.fancyholograms.api
Interface HologramConfiguration
public interface HologramConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether version notifications are enabled or disabled.intReturns the interval at which autosave is performed.intReturns the default visibility distance for holograms.Returns the log level for the plugin.intReturns the interval at which hologram visibility is updated.booleanReturns whether autosave is enabled.booleanReturns whether hologram load logging on world loading is enabled or disabled.booleanReturns whether the plugin should register its commands.booleanReturns whether the plugin should save holograms when they are changed.voidreload(@NotNull FancyHologramsPlugin plugin) Reloads the configuration.
-
Method Details
-
reload
Reloads the configuration.- Parameters:
plugin- The plugin instance.
-
isAutosaveEnabled
boolean isAutosaveEnabled()Returns whether autosave is enabled.- Returns:
trueif autosave is enabled,falseotherwise.
-
getAutosaveInterval
int getAutosaveInterval()Returns the interval at which autosave is performed.- Returns:
- The autosave interval in minutes.
-
isSaveOnChangedEnabled
boolean isSaveOnChangedEnabled()Returns whether the plugin should save holograms when they are changed.- Returns:
trueif the plugin should save holograms when they are changed,falseotherwise.
-
getLogLevel
String getLogLevel()Returns the log level for the plugin.- Returns:
- The log level for the plugin.
-
isHologramLoadLogging
boolean isHologramLoadLogging()Returns whether hologram load logging on world loading is enabled or disabled.- Returns:
trueif hologram loading should be logged on world loading,falseotherwise.
-
areVersionNotificationsEnabled
boolean areVersionNotificationsEnabled()Returns whether version notifications are enabled or disabled.- Returns:
trueif version notifications are enabled,falseotherwise.
-
getDefaultVisibilityDistance
int getDefaultVisibilityDistance()Returns the default visibility distance for holograms.- Returns:
- The default hologram visibility distance.
-
isRegisterCommands
boolean isRegisterCommands()Returns whether the plugin should register its commands.- Returns:
trueif the plugin should register its commands,falseotherwise.
-
getUpdateVisibilityInterval
int getUpdateVisibilityInterval()Returns the interval at which hologram visibility is updated.- Returns:
- The hologram visibility update interval in milliseconds.
-