Struct hematite_server::proto::properties::Properties
[−]
[src]
pub struct Properties { pub allow_flight: bool, pub allow_nether: bool, pub announce_player_achievements: bool, pub difficulty: i32, pub enable_query: bool, pub enable_rcon: bool, pub enable_command_block: bool, pub force_gamemode: bool, pub gamemode: i32, pub generate_structures: bool, pub generator_settings: String, pub hardcore: bool, pub level_name: String, pub level_seed: String, pub level_type: String, pub max_build_height: i32, pub max_players: i32, pub max_tick_time: i32, pub max_world_size: i32, pub motd: String, pub network_compression_threshold: i32, pub online_mode: bool, pub op_permission_level: i32, pub player_idle_timeout: i32, pub pvp: bool, pub query_port: i32, pub rcon_password: String, pub rcon_port: i32, pub resource_pack: String, pub resource_pack_hash: String, pub server_ip: String, pub server_port: i32, pub snooper_enabled: bool, pub spawn_animals: bool, pub spawn_monsters: bool, pub spawn_npcs: bool, pub spawn_protection: i32, pub use_native_transport: bool, pub view_distance: i32, pub white_list: bool, }
Vanilla server.properties
Documentation of each filed here: http://minecraft.gamepedia.com/Server.properties
Fields
allow_flight | |
allow_nether | |
announce_player_achievements | |
difficulty | |
enable_query | |
enable_rcon | |
enable_command_block | |
force_gamemode | |
gamemode | |
generate_structures | |
generator_settings | |
hardcore | |
level_name | |
level_seed | |
level_type | |
max_build_height | |
max_players | |
max_tick_time | |
max_world_size | |
motd | |
network_compression_threshold | |
online_mode | |
op_permission_level | |
player_idle_timeout | |
pvp | |
query_port | |
rcon_password | |
rcon_port | |
resource_pack | |
resource_pack_hash | |
server_ip | |
server_port | |
snooper_enabled | |
spawn_animals | |
spawn_monsters | |
spawn_npcs | |
spawn_protection | |
use_native_transport | |
view_distance | |
white_list |
Methods
impl Properties
fn default() -> Properties
fn load(path: &Path) -> Result<Properties>
Load and parse a server.properties file from path
,
fn save(&self, path: &Path) -> Result<()>
Saves a server.properties file into path
. It creates the
file if it does not exist, and will truncate it if it does.