ServerProperties constructor

ServerProperties({bool allow_flight: false, bool allow_nether: true, bool broadcast_console_to_ops: true, SERVER_DIFFICULTY difficulty: SERVER_DIFFICULTY.EASY, bool enable_command_block: false, bool enable_query: false, bool enable_rcon: false, bool enforce_whitelist: false, bool force_gamemode: false, int function_permission_level: 2, SERVER_GAMEMODE gamemode: SERVER_GAMEMODE.SURVIVAL, bool generate_structures: true, String generator_settings: "", bool hardcore: false, String level_name: "world", String level_seed: "", LEVEL_TYPE level_type: LEVEL_TYPE.DEFAULT, int max_build_height: 256, int max_players: 20, int max_tick_time: 60000, int max_world_size: 29999984, String motd: "A Minecraft Server", int network_compression_threshold: 256, bool online_mode: true, int op_permission_level: 4, int player_idle_timeout: 0, bool prevent_proxy_connections: false, bool pvp: true, String resource_pack: "", String resource_pack_sha1: "", String server_ip: "", int server_port: 25565, bool snooper_enabled: true, bool spawn_animals: true, bool spawn_monsters: true, bool spawn_npcs: true, int spawn_protection: 16, int view_distance: 10, bool white_list: false, PropertiesTemplate template: null, @required String file })

Implementation

ServerProperties ({
  this.allow_flight = false,
  this.allow_nether = true,
  this.broadcast_console_to_ops = true,
  this.difficulty = SERVER_DIFFICULTY.EASY,
  this.enable_command_block = false,
  this.enable_query = false,
  this.enable_rcon = false,
  this.enforce_whitelist = false,
  this.force_gamemode = false,
  this.function_permission_level = 2,
  this.gamemode = SERVER_GAMEMODE.SURVIVAL,
  this.generate_structures = true,
  this.generator_settings = "",
  this.hardcore = false,
  this.level_name = "world",
  this.level_seed = "",
  this.level_type = LEVEL_TYPE.DEFAULT,
  this.max_build_height = 256,
  this.max_players = 20,
  this.max_tick_time = 60000,
  this.max_world_size = 29999984,
  this.motd = "A Minecraft Server",
  this.network_compression_threshold = 256,
  this.online_mode = true,
  this.op_permission_level = 4,
  this.player_idle_timeout = 0,
  this.prevent_proxy_connections = false,
  this.pvp = true,
  this.resource_pack = "",
  this.resource_pack_sha1 = "",
  this.server_ip = "",
  this.server_port = 25565,
  this.snooper_enabled = true,
  this.spawn_animals = true,
  this.spawn_monsters = true,
  this.spawn_npcs = true,
  this.spawn_protection = 16,
  this.view_distance = 10,
  this.white_list = false,
  this.template = null,
  @required this.file,
});