Envs to map to types
This commit is contained in:
parent
d749cd6372
commit
0763c573ac
1 changed files with 123 additions and 75 deletions
198
src/constants.py
198
src/constants.py
|
|
@ -2,78 +2,126 @@
|
||||||
Author: Jose Stovall | oitsjustjose
|
Author: Jose Stovall | oitsjustjose
|
||||||
"""
|
"""
|
||||||
|
|
||||||
SERVER_ENVS = [
|
SERVER_ENVS = {
|
||||||
"ALLOW_FLIGHT",
|
"allow_flight": bool,
|
||||||
"ALLOW_NETHER",
|
"allow_nether": bool,
|
||||||
"ANNOUNCE_PLAYER_ACHIEVEMENTS",
|
"announce_player_achievements": bool,
|
||||||
"BUILD_FROM_SOURCE",
|
"autopause_knock_interface": str,
|
||||||
"BUKKIT_DOWNLOAD_URL",
|
"autopause_period": int,
|
||||||
"CANYON_BUILD",
|
"autopause_timeout_est": int,
|
||||||
"CF_BASE_DIR",
|
"autopause_timeout_init": int,
|
||||||
"CF_SERVER_MOD",
|
"autopause_timeout_kn": int,
|
||||||
"CONSOLE",
|
"broadcast_console_to_ops": bool,
|
||||||
"COPY_CONFIG_DEST",
|
"broadcast_rcon_to_ops": bool,
|
||||||
"DIFFICULTY",
|
"build_from_source": bool,
|
||||||
"ENABLE_AUTOPAUSE",
|
"bukkit_download_url": str,
|
||||||
"ENABLE_COMMAND_BLOCK",
|
"canyon_build": int,
|
||||||
"ENABLE_JMX",
|
"cf_base_dir": str,
|
||||||
"ENABLE_QUERY",
|
"cf_server_mod": str,
|
||||||
"ENABLE_RCON",
|
"cfg_db_host": str,
|
||||||
"ENABLE_ROLLING_LOGS",
|
"cfg_db_name": str,
|
||||||
"EXEC_DIRECTLY",
|
"cfg_db_password_file": str,
|
||||||
"FABRIC_INSTALLER_URL",
|
"console": bool,
|
||||||
"FABRIC_INSTALLER",
|
"copy_config_dest": str,
|
||||||
"FORCE_GAMEMODE",
|
"copy_mods_dest": str,
|
||||||
"FORCE_REDOWNLOAD",
|
"custom_server": str,
|
||||||
"FORGE_INSTALLER_URL",
|
"difficulty": str,
|
||||||
"FORGE_INSTALLER",
|
"disable_healthcheck": bool,
|
||||||
"FORGEVERSION",
|
"enable_autopause": bool,
|
||||||
"FTB_LEGACYJAVAFIXER",
|
"enable_command_block": bool,
|
||||||
"GENERATE_STRUCTURES",
|
"enable_jmx": bool,
|
||||||
"GID",
|
"enable_query": bool,
|
||||||
"GUI",
|
"enable_rcon": bool,
|
||||||
"HARDCORE",
|
"enable_rolling_logs": bool,
|
||||||
"ICON",
|
"enable_status": bool,
|
||||||
"LEVEL_TYPE",
|
"enforce_whitelist": bool,
|
||||||
"LEVEL",
|
"entity_broadcast_range_percentage": float,
|
||||||
"MAX_BUILD_HEIGHT",
|
"env_variable_prefix": str,
|
||||||
"MAX_PLAYERS",
|
"exec_directly": bool,
|
||||||
"MAX_TICK_TIME",
|
"fabric_installer": str,
|
||||||
"MAX_WORLD_SIZE",
|
"fabric_installer_url": str,
|
||||||
"MEMORY",
|
"fabric_installer_version": str,
|
||||||
"MODE",
|
"force_gamemode": bool,
|
||||||
"MODPACK",
|
"force_redownload": bool,
|
||||||
"MODS",
|
"force_world_copy": bool,
|
||||||
"MOTD",
|
"forge_installer": str,
|
||||||
"ONLINE_MODE",
|
"forge_installer_url": str,
|
||||||
"OPS",
|
"forgeversion": str,
|
||||||
"OVERRIDE_SERVER_PROPERTIES",
|
"ftb_legacyjavafixer": bool,
|
||||||
"PAPER_DOWNLOAD_URL",
|
"ftb_modpack_id": str,
|
||||||
"PAPERBUILD",
|
"ftb_modpack_version_id": str,
|
||||||
"PROXY",
|
"function_permission_level": int,
|
||||||
"PVP",
|
"generate_structures": bool,
|
||||||
"REMOVE_OLD_MODS",
|
"hardcore": bool,
|
||||||
"SEED",
|
"icon": str,
|
||||||
"SERVER_NAME",
|
"init_memory": str,
|
||||||
"SERVER_PORT",
|
"jmx_host": str,
|
||||||
"SNOOPER_ENABLED",
|
"jvm_dd_opts": str,
|
||||||
"SPAWN_ANIMALS",
|
"jvm_opts": str,
|
||||||
"SPAWN_MONSTERS",
|
"jvm_xx_opts": str,
|
||||||
"SPAWN_NPCS",
|
"level": str,
|
||||||
"SPAWN_PROTECTION",
|
"level_type": str,
|
||||||
"SPIGET_RESOURCES",
|
"max_build_height": int,
|
||||||
"SPIGOT_DOWNLOAD_URL",
|
"max_memory": str,
|
||||||
"SPONGEVERSION",
|
"max_players": int,
|
||||||
"TUNE_NURSERY_SIZES",
|
"max_tick_time": int,
|
||||||
"TUNE_VIRTUALIZED",
|
"max_world_size": int,
|
||||||
"TYPE",
|
"memory": str,
|
||||||
"TZ",
|
"modpack": str,
|
||||||
"UID",
|
"mohist_build": int,
|
||||||
"USE_AIKAR_FLAGS",
|
"motd": str,
|
||||||
"USE_LARGE_PAGES",
|
"network_compression_threshold": int,
|
||||||
"USE_MODPACK_START_SCRIPT",
|
"online_mode": bool,
|
||||||
"VIEW_DISTANCE",
|
"op_permission_level": int,
|
||||||
"WHITELIST",
|
"ops": str,
|
||||||
"WORLD",
|
"override_icon": bool,
|
||||||
"RESOURCE_PACK",
|
"override_ops": bool,
|
||||||
]
|
"override_server_properties": bool,
|
||||||
|
"override_whitelist": bool,
|
||||||
|
"paper_download_url": str,
|
||||||
|
"paperbuild": int,
|
||||||
|
"player_idle_timeout": int,
|
||||||
|
"plugins_sync_update": bool,
|
||||||
|
"prevent_proxy_connections": bool,
|
||||||
|
"proxy": str,
|
||||||
|
"purpur_build": str,
|
||||||
|
"pvp": bool,
|
||||||
|
"query_port": str,
|
||||||
|
"rcon_passord": str,
|
||||||
|
"rcon_port": str,
|
||||||
|
"remove_old_mods": bool,
|
||||||
|
"remove_old_mods_depth": int,
|
||||||
|
"remove_old_mods_exclude": str,
|
||||||
|
"remove_old_mods_include": str,
|
||||||
|
"replace_env_variables": bool,
|
||||||
|
"replace_env_variables_exclude_paths": bool,
|
||||||
|
"replace_env_variables_excludes": bool,
|
||||||
|
"resource_pack": str,
|
||||||
|
"resource_pack_sha1": str,
|
||||||
|
"seed": str,
|
||||||
|
"server_name": str,
|
||||||
|
"server_port": str,
|
||||||
|
"snooper_enabled": bool,
|
||||||
|
"spawn_animals": bool,
|
||||||
|
"spawn_monsters": bool,
|
||||||
|
"spawn_npcs": bool,
|
||||||
|
"spawn_protection": int,
|
||||||
|
"spiget_resources": str,
|
||||||
|
"spigot_download_url": str,
|
||||||
|
"spongeversion": str,
|
||||||
|
"stop_duration": int,
|
||||||
|
"sync_chunk_writes": bool,
|
||||||
|
"tune_nursery_sizes": bool,
|
||||||
|
"tune_virtualized": bool,
|
||||||
|
"type": str,
|
||||||
|
"tz": str,
|
||||||
|
"use_aikar_flags": bool,
|
||||||
|
"use_flare_flags": bool,
|
||||||
|
"use_large_pages": bool,
|
||||||
|
"use_modpack_start_script": bool,
|
||||||
|
"use_native_transport": bool,
|
||||||
|
"view_distance": int,
|
||||||
|
"whitelist": str,
|
||||||
|
"world": str,
|
||||||
|
"world_index": int,
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue