Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- PARSER
- HELP
- VERSION
- BARE
- BOOTSTRAP
- LOG_LEVELS
- BIND
- TRANSPORT
- DISABLE_CPB_BUILD
- PREFAB_CACHE_DIRECTORY
- ASSET_DIRECTORY
- MODS_DIRECTORIES
- ALLOW_INSTALL_DIR
- ACCEPT_EARLY_PLUGINS
- EARLY_PLUGIN_DIRECTORIES
- VALIDATE_ASSETS
- VALIDATE_PREFABS
- VALIDATE_WORLD_GEN
- SHUTDOWN_AFTER_VALIDATE
- GENERATE_ASSET_SCHEMA
- GENERATE_CONFIG_SCHEMA
- WORLD_GEN_DIRECTORY
- DISABLE_FILE_WATCHER
- DISABLE_SENTRY
- DISABLE_ASSET_COMPARE
- BACKUP
- BACKUP_FREQUENCY_MINUTES
- BACKUP_DIRECTORY
- BACKUP_MAX_COUNT
- BACKUP_ARCHIVE_MAX_COUNT
- SINGLEPLAYER
- OWNER_NAME
- OWNER_UUID
- CLIENT_PID
- UNIVERSE
- EVENT_DEBUG
- FORCE_NETWORK_FLUSH
- MIGRATIONS
- MIGRATE_WORLDS
- BOOT_COMMAND
- IGNORE_BROKEN_MODS
- ALLOW_SELF_OP_COMMAND_STRING
- ALLOW_SELF_OP_COMMAND
- AUTH_MODE
- SESSION_TOKEN
- IDENTITY_TOKEN
- VERIFY_WORLDS
- RECOVERY_MODE
- Constructor Details
- Method Details
Class Options
java.lang.Object
com.hypixel.hytale.server.core.Options
Contains all the command line options that are parsed and can be received
from
OptionSet received from getOptionSet().-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAuthentication modes supported by the server.static classstatic classstatic enumstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final joptsimple.OptionSpec<Void> static final joptsimple.OptionSpec<Void> Allows the server to boot with its working directory inside the launcher install path.static final joptsimple.OptionSpec<Void> static final StringAn option that determines whether the "/op self" command is available.static final joptsimple.OptionSpec<Path> The asset directory that contains the config, models and textures ued by the game.static final joptsimple.OptionSpec<Options.AuthMode> Authentication mode for the server. - "authenticated": Require full authentication (mTLS + JWT) - default for release - "offline": Accept development connections only (no auth, singleplayer offline mode) - "insecure": Accept development connections - default for stagestatic final joptsimple.OptionSpec<Void> Enable automatic backups according toBACKUP_FREQUENCY_MINUTES.static final joptsimple.OptionSpec<Integer> The maximum number of archived backups to retain.static final joptsimple.OptionSpec<Path> The directory to place the backups in.static final joptsimple.OptionSpec<Integer> Sets how frequent backups occur (every N minutes).static final joptsimple.OptionSpec<Integer> The maximum number of recent backups to retain.static final joptsimple.OptionSpec<Void> static final joptsimple.OptionSpec<InetSocketAddress> Specify what addresses to bind to.static final joptsimple.OptionSpec<String> static final joptsimple.OptionSpec<Void> Runs the server in bootstrap mode, loading only the minimal plugin set required to authenticate and download the full server payload (JAR, assets, launcher scripts) into the current working directory.static final joptsimple.OptionSpec<Integer> The PID of thestatic final joptsimple.OptionSpec<Void> Disabled the AssetStore compare when reloading assets.static final joptsimple.OptionSpec<Void> Disables automatic pregeneration of compact prefab buffers from the assets directory.static final joptsimple.OptionSpec<Void> Disables the file-watcher service that watches for changes to the data directory.static final joptsimple.OptionSpec<Void> Disable sending stack traces to sentry.static final joptsimple.OptionSpec<Path> Additional early plugin directories to load from.static final joptsimple.OptionSpec<Void> Enable event debug by defaultstatic final joptsimple.OptionSpec<Boolean> static final joptsimple.OptionSpec<Path> static final joptsimple.OptionSpec<Path> static final joptsimple.OptionSpec<Void> static final joptsimple.OptionSpec<String> Identity token for singleplayer mode.static final joptsimple.OptionSpec<Void> The log levels provided toHytaleLoggerBackend.loadLevels(List)Format is >LoggerName>:<Level> multiple can be defined if separated by ',' or multiple --log options If no logger name is provided it will set the log level of the default logger.static final joptsimple.OptionSpec<String> static final joptsimple.OptionSpec<Path> Additional mods directories that contain plugins (.jar) and asset packs (directories/.zip).static final joptsimple.OptionSpec<String> The name of the singleplayer world owner.static final joptsimple.OptionSpec<UUID> The UUID of the singleplayer world owner.static final joptsimple.OptionParserTheOptionParserused to parse the command line options.static final joptsimple.OptionSpec<Path> The directory to store cached prefab buffers (LPF files) when loading from immutable asset packs.static final joptsimple.OptionSpec<Options.RecoveryMode> static final joptsimple.OptionSpec<String> Session token for singleplayer mode.static final joptsimple.OptionSpec<Void> static final joptsimple.OptionSpec<Void> Tell the server to run in singleplayer mode.static final joptsimple.OptionSpec<TransportType> static final joptsimple.OptionSpec<Path> Loads a universe from a specified path.static final joptsimple.OptionSpec<Void> static final joptsimple.OptionSpec<ValidationOption> static final joptsimple.OptionSpec<Void> static final joptsimple.OptionSpec<Void> static final joptsimple.OptionSpec<Void> static final joptsimple.OptionSpec<Path> The directory containing the world gen configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic joptsimple.OptionSetstatic <T> TgetOrDefault(joptsimple.OptionSpec<T> optionSpec, joptsimple.OptionSet optionSet, T def) Get the value of an option or default to a value if it isn't specified.static booleanisBare()static boolean
-
Field Details
-
PARSER
public static final joptsimple.OptionParser PARSERTheOptionParserused to parse the command line options. -
HELP
-
VERSION
-
BARE
-
BOOTSTRAP
Runs the server in bootstrap mode, loading only the minimal plugin set required to authenticate and download the full server payload (JAR, assets, launcher scripts) into the current working directory. Intended for first-run installs where the user has just theHytaleServer.jar. ImpliesBARE. -
LOG_LEVELS
The log levels provided toHytaleLoggerBackend.loadLevels(List)Format is >LoggerName>:<Level> multiple can be defined if separated by ',' or multiple --log options If no logger name is provided it will set the log level of the default logger. (eg. --log FINE,PacketLogging:OFF,WorldGenerator:OFF) -
BIND
Specify what addresses to bind to. The format is >Port> or >IP>:>Port> (eg. -b 5520 or -b 127.0.0.1:5520) -
TRANSPORT
-
DISABLE_CPB_BUILD
Disables automatic pregeneration of compact prefab buffers from the assets directory. -
PREFAB_CACHE_DIRECTORY
The directory to store cached prefab buffers (LPF files) when loading from immutable asset packs. If not specified, defaults to ".cache/prefabs" relative to the working directory. -
ASSET_DIRECTORY
The asset directory that contains the config, models and textures ued by the game. -
MODS_DIRECTORIES
Additional mods directories that contain plugins (.jar) and asset packs (directories/.zip). These are loaded in addition to the default "mods" directory in the working directory. Multiple directories can be specified via CLI separated by commas. -
ALLOW_INSTALL_DIR
Allows the server to boot with its working directory inside the launcher install path. Registered here so the parser accepts the flag thatInstallDirGuardreads. -
ACCEPT_EARLY_PLUGINS
-
EARLY_PLUGIN_DIRECTORIES
Additional early plugin directories to load from. Multiple directories can be specified separated by commas. -
VALIDATE_ASSETS
-
VALIDATE_PREFABS
-
VALIDATE_WORLD_GEN
-
SHUTDOWN_AFTER_VALIDATE
-
GENERATE_ASSET_SCHEMA
-
GENERATE_CONFIG_SCHEMA
-
WORLD_GEN_DIRECTORY
The directory containing the world gen configuration. -
DISABLE_FILE_WATCHER
Disables the file-watcher service that watches for changes to the data directory. -
DISABLE_SENTRY
Disable sending stack traces to sentry. -
DISABLE_ASSET_COMPARE
Disabled the AssetStore compare when reloading assets. This can reduce the asset reload time on the server but may cause assets that have unchanged data (the file content can change without modifying the data) same to be sent in updates. -
BACKUP
Enable automatic backups according toBACKUP_FREQUENCY_MINUTES. -
BACKUP_FREQUENCY_MINUTES
Sets how frequent backups occur (every N minutes). -
BACKUP_DIRECTORY
The directory to place the backups in. -
BACKUP_MAX_COUNT
The maximum number of recent backups to retain. Additional backups will be deleted, starting with the oldest. -
BACKUP_ARCHIVE_MAX_COUNT
The maximum number of archived backups to retain. Additional archived backups will be deleted, starting with the oldest. -
SINGLEPLAYER
Tell the server to run in singleplayer mode. -
OWNER_NAME
The name of the singleplayer world owner. -
OWNER_UUID
The UUID of the singleplayer world owner. -
CLIENT_PID
The PID of the -
UNIVERSE
Loads a universe from a specified path. Used to start a singleplayer world. -
EVENT_DEBUG
Enable event debug by default -
FORCE_NETWORK_FLUSH
-
MIGRATIONS
-
MIGRATE_WORLDS
-
BOOT_COMMAND
-
IGNORE_BROKEN_MODS
-
ALLOW_SELF_OP_COMMAND_STRING
An option that determines whether the "/op self" command is available.Intended for devs and cowboy server admins.
- See Also:
-
ALLOW_SELF_OP_COMMAND
-
AUTH_MODE
Authentication mode for the server. - "authenticated": Require full authentication (mTLS + JWT) - default for release - "offline": Accept development connections only (no auth, singleplayer offline mode) - "insecure": Accept development connections - default for stage -
SESSION_TOKEN
Session token for singleplayer mode. Used to authenticate with the Session Service for mutual auth. Passed by the client when starting a singleplayer server. -
IDENTITY_TOKEN
Identity token for singleplayer mode. JWT from the launcher, used to prove server identity to clients. Passed by the client when starting a singleplayer server. -
VERIFY_WORLDS
-
RECOVERY_MODE
-
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
getOptionSet
public static joptsimple.OptionSet getOptionSet() -
isBare
-
getOrDefault
public static <T> T getOrDefault(joptsimple.OptionSpec<T> optionSpec, @Nonnull joptsimple.OptionSet optionSet, T def) Get the value of an option or default to a value if it isn't specified.- Type Parameters:
T- The type of the value.- Parameters:
optionSpec- The option spec.optionSet- The option set.def- The default value.- Returns:
- The value of the option.
-
parse
- Throws:
IOException
-