ServerProperties class

Constructors

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 })
ServerProperties.loadFile(String file)
ServerProperties.loadMap(Map<String, dynamic> properties, String file)
ServerProperties.loadProperties(Properties properties, String file)

Properties

allow_flight ↔ bool
read / write
allow_nether ↔ bool
read / write
broadcast_console_to_ops ↔ bool
read / write
difficulty SERVER_DIFFICULTY
read / write
enable_command_block ↔ bool
read / write
enable_query ↔ bool
read / write
enable_rcon ↔ bool
read / write
enforce_whitelist ↔ bool
read / write
file ↔ String
read / write
force_gamemode ↔ bool
read / write
function_permission_level ↔ int
read / write
gamemode SERVER_GAMEMODE
read / write
generate_structures ↔ bool
read / write
generator_settings ↔ String
read / write
hardcore ↔ bool
read / write
level_name ↔ String
read / write
level_seed ↔ String
read / write
level_type LEVEL_TYPE
read / write
max_build_height ↔ int
read / write
max_players ↔ int
read / write
max_tick_time ↔ int
read / write
max_world_size ↔ int
read / write
motd ↔ String
read / write
network_compression_threshold ↔ int
read / write
online_mode ↔ bool
read / write
op_permission_level ↔ int
read / write
player_idle_timeout ↔ int
read / write
prevent_proxy_connections ↔ bool
read / write
pvp ↔ bool
read / write
resource_pack ↔ String
read / write
resource_pack_sha1 ↔ String
read / write
server_ip ↔ String
read / write
server_port ↔ int
read / write
snooper_enabled ↔ bool
read / write
spawn_animals ↔ bool
read / write
spawn_monsters ↔ bool
read / write
spawn_npcs ↔ bool
read / write
spawn_protection ↔ int
read / write
template PropertiesTemplate
read / write
view_distance ↔ int
read / write
white_list ↔ bool
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

save() → Future<File>
saveSync() → void
saveToFile(String file) → Future<File>
saveToFileSync(String file) → void
toMap() → Map<String, dynamic>
toProperties() Properties
toString() → String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited