Class WatchdogSettings
java.lang.Object
ua.mcchickenstudio.opencreative.settings.WatchdogSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether watchdog is enabled.voidload()Loads settings of watchdog from configuration.booleanChecks whether players must be prevented from creating new worlds and connecting to worlds when stability is bad.booleanChecks whether worlds should be unloaded when stability is bad.
-
Constructor Details
-
WatchdogSettings
public WatchdogSettings()
-
-
Method Details
-
load
public void load()Loads settings of watchdog from configuration. -
isEnabled
public boolean isEnabled()Checks whether watchdog is enabled.- Returns:
- true - enabled, false - disabled.
-
shouldLimitOperationsWhenUnstable
public boolean shouldLimitOperationsWhenUnstable()Checks whether players must be prevented from creating new worlds and connecting to worlds when stability is bad.- Returns:
- true - should limit, false - will not limit.
-
shouldUnloadWorldsWhenUnstable
public boolean shouldUnloadWorldsWhenUnstable()Checks whether worlds should be unloaded when stability is bad.- Returns:
- true - should be unloaded, false - not.
-