Class WatchdogSettings

java.lang.Object
ua.mcchickenstudio.opencreative.settings.WatchdogSettings

public final class WatchdogSettings extends Object
  • 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.