Class UpdateConfig

java.lang.Object
com.hypixel.hytale.server.core.config.UpdateConfig

public class UpdateConfig extends Object
Configuration for the server auto-update system.
  • Field Details

  • Constructor Details

    • UpdateConfig

      public UpdateConfig()
    • UpdateConfig

      public UpdateConfig(@Nonnull HytaleServerConfig hytaleServerConfig)
  • Method Details

    • setHytaleServerConfig

      public void setHytaleServerConfig(@Nonnull HytaleServerConfig hytaleServerConfig)
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getCheckIntervalSeconds

      public int getCheckIntervalSeconds()
    • setCheckIntervalSeconds

      public void setCheckIntervalSeconds(int checkIntervalSeconds)
    • isNotifyPlayersOnAvailable

      public boolean isNotifyPlayersOnAvailable()
    • setNotifyPlayersOnAvailable

      public void setNotifyPlayersOnAvailable(boolean notifyPlayersOnAvailable)
    • getPatchline

      @Nullable public String getPatchline()
    • setPatchline

      public void setPatchline(@Nullable String patchline)
    • isRunBackupBeforeUpdate

      public boolean isRunBackupBeforeUpdate()
    • setRunBackupBeforeUpdate

      public void setRunBackupBeforeUpdate(boolean runBackupBeforeUpdate)
    • isBackupConfigBeforeUpdate

      public boolean isBackupConfigBeforeUpdate()
    • setBackupConfigBeforeUpdate

      public void setBackupConfigBeforeUpdate(boolean backupConfigBeforeUpdate)
    • getAutoApplyMode

      @Nonnull public UpdateConfig.AutoApplyMode getAutoApplyMode()
      The auto-apply mode for staged updates. Default: DISABLED
    • setAutoApplyMode

      public void setAutoApplyMode(@Nonnull UpdateConfig.AutoApplyMode autoApplyMode)
    • getAutoApplyDelayMinutes

      public int getAutoApplyDelayMinutes()
      Minutes to wait before auto-applying when using SCHEDULED mode. Default: 30
    • setAutoApplyDelayMinutes

      public void setAutoApplyDelayMinutes(int autoApplyDelayMinutes)