Class HytaleServerConfig.Defaults

java.lang.Object
com.hypixel.hytale.server.core.HytaleServerConfig.Defaults
Enclosing class:
HytaleServerConfig

public static class HytaleServerConfig.Defaults extends Object
  • Field Details

  • Method Details

    • getWorld

      public String getWorld()
    • setWorld

      public void setWorld(String world)
    • getGameMode

      public GameMode getGameMode()
    • setGameMode

      public void setGameMode(GameMode gameMode)
    • getGameModeTypeOnDeath

      @Nullable public String getGameModeTypeOnDeath()
      Returns:
      the GameModeType asset id entered on death in worlds whose death config does not set one, or null for the normal respawn flow.
    • setGameModeTypeOnDeath

      public void setGameModeTypeOnDeath(@Nullable String gameModeTypeOnDeath)
      Parameters:
      gameModeTypeOnDeath - the GameModeType asset id to enter on death, or null to restore the normal respawn flow.
    • getHardcoreMode

      @Nonnull public HardcoreMode getHardcoreMode()
      Returns:
      the hardcore mode of the universe, HardcoreMode.None when the config sets none.
    • getHardcoreLives

      public int getHardcoreLives()
      Returns:
      the number of lives for the hardcore mode: the per-player count for HardcoreMode.PerPlayer or the shared pool size for HardcoreMode.Global, one life when the config sets no count, and 0 for HardcoreMode.None.
    • getCrashRecovery

      @Nonnull public CrashRecoveryConfig getCrashRecovery()
      Returns:
      the recovery policy for the default world when its thread crashes.