classpublicPriority 3
Options
com.hypixel.hytale.server.core.Options
6
Methods
6
Public Methods
1
Fields
1
Constructors
Constants
OptionSpec<Void>ACCEPT_EARLY_PLUGINS= PARSER.accepts(
"accept-early-plugins", "You acknowledge that loading early plugins is unsu...
OptionSpec<Void>ALLOW_SELF_OP_COMMAND= PARSER.accepts("allow-op")
StringALLOW_SELF_OP_COMMAND_STRING= "allow-op"
OptionSpec<Path>ASSET_DIRECTORY= PARSER.acceptsAll(List.of("assets"), "Asset directory")
.withRequiredArg()
.withValue...
OptionSpec<Options.AuthMode>AUTH_MODE= PARSER.accepts("auth-mode", "Authentication mode")
.withRequiredArg()
.withValuesConv...
OptionSpec<Void>BACKUP= PARSER.accepts("backup")
OptionSpec<Path>BACKUP_DIRECTORY= PARSER.accepts("backup-dir")
.requiredIf(BACKUP, new OptionSpec[0])
.withRequiredArg(...
OptionSpec<Integer>BACKUP_FREQUENCY_MINUTES= PARSER.accepts("backup-frequency")
.withRequiredArg()
.ofType(Integer.class)
.d...
OptionSpec<Integer>BACKUP_MAX_COUNT= PARSER.accepts("backup-max-count")
.withRequiredArg()
.ofType(Integer.class)
.d...
OptionSpec<Void>BARE= PARSER.accepts(
"bare",
"Runs the server bare. For example without loading worlds, bi...
OptionSpec<InetSocketAddress>BIND= PARSER.acceptsAll(List.of("b", "bind"), "Port to listen on")
.withRequiredArg()
.with...
OptionSpec<String>BOOT_COMMAND= PARSER.accepts(
"boot-command", "Runs command on boot. If multiple commands are provided...
OptionSpec<Integer>CLIENT_PID= PARSER.accepts("client-pid").withRequiredArg().ofType(Integer.class)
OptionSpec<Void>DISABLE_ASSET_COMPARE= PARSER.accepts("disable-asset-compare")
OptionSpec<Void>DISABLE_CPB_BUILD= PARSER.accepts("disable-cpb-build", "Disables building of compact prefab buffers")
OptionSpec<Void>DISABLE_FILE_WATCHER= PARSER.accepts("disable-file-watcher")
OptionSpec<Void>DISABLE_SENTRY= PARSER.accepts("disable-sentry")
OptionSpec<Path>EARLY_PLUGIN_DIRECTORIES= PARSER.accepts("early-plugins", "Additional early plugin directories to load from")
.withRe...
Entry<String, Level>ENTRY= Map.entry("", Level.ALL)
OptionSpec<Void>EVENT_DEBUG= PARSER.accepts("event-debug")
OptionSpec<Boolean>FORCE_NETWORK_FLUSH= PARSER.accepts("force-network-flush")
.withRequiredArg()
.ofType(Boolean.class)
...
OptionSpec<Void>GENERATE_SCHEMA= PARSER.accepts(
"generate-schema", "Causes the server generate schema, save it into the ass...
OptionSpec<Void>HELP= PARSER.accepts("help", "Print's this message.").forHelp()
OptionSpec<String>IDENTITY_TOKEN= PARSER.accepts("identity-token", "Identity token (JWT)").withRequiredArg().ofType(String.class)
OptionSpec<Entry<String, Level>>LOG_LEVELS= PARSER.accepts("log", "Sets the logger level.")
.withRequiredArg()
.withValuesSeparat...
Map<String, Level>MAP= new Object2ObjectOpenHashMap()
OptionSpec<String>MIGRATE_WORLDS= PARSER.accepts("migrate-worlds", "Worlds to migrate")
.availableIf(MIGRATIONS, new OptionSp...
OptionSpec<Map<String, Path>>MIGRATIONS= PARSER.accepts("migrations", "The migrations to run")
.withRequiredArg()
.withValuesC...
OptionSpec<Path>MODS_DIRECTORIES= PARSER.acceptsAll(List.of("mods"), "Additional mods directories")
.withRequiredArg()
...
OptionSpec<String>OWNER_NAME= PARSER.accepts("owner-name").withRequiredArg()
OptionSpec<UUID>OWNER_UUID= PARSER.accepts("owner-uuid").withRequiredArg().withValuesConvertedBy(new Options.UUIDConverter())
OptionParserPARSER= new OptionParser()
OptionSpec<Path>PREFAB_CACHE_DIRECTORY= PARSER.accepts("prefab-cache", "Prefab cache directory for immutable assets")
.withRequired...
OptionSpec<String>SESSION_TOKEN= PARSER.accepts("session-token", "Session token for Session Service API")
.withRequiredArg()...
OptionSpec<Void>SHUTDOWN_AFTER_VALIDATE= PARSER.accepts(
"shutdown-after-validate", "Automatically shutdown the server after asset a...
OptionSpec<Void>SINGLEPLAYER= PARSER.accepts("singleplayer")
OptionSpec<TransportType>TRANSPORT= PARSER.acceptsAll(List.of("t", "transport"), "Transport type")
.withRequiredArg()
.of...
OptionSpec<Path>UNIVERSE= PARSER.accepts("universe")
.withRequiredArg()
.withValuesConvertedBy(new Options.Path...
OptionSpec<Void>VALIDATE_ASSETS= PARSER.accepts(
"validate-assets", "Causes the server to exit with an error code if any ass...
OptionSpec<ValidationOption>VALIDATE_PREFABS= PARSER.accepts(
"validate-prefabs", "Causes the server to exit with an error code if any...
OptionSpec<Void>VALIDATE_WORLD_GEN= PARSER.accepts(
"validate-world-gen", "Causes the server to exit with an error code if defa...
OptionSpec<Void>VERSION= PARSER.accepts("version", "Prints version information.")
OptionSpec<Path>WORLD_GEN_DIRECTORY= PARSER.accepts("world-gen", "World gen directory")
.withRequiredArg()
.withValuesConv...
Constructors
public
Options()Methods
Public Methods (6)
public
Options.AuthMode convert(String value)publicstatic
OptionSet getOptionSet()publicstatic
<T> T getOrDefault(OptionSpec<T> optionSpec, OptionSet optionSet, T def)publicstatic
boolean parse(String[] args)throws IOException
public
String valuePattern()public
Class<Entry<String, Level>> valueType()@Nonnull
Fields
Private/Package Fields (1)
private
OptionSet optionSet