Added banlist to server settings and added default value

This commit is contained in:
tylerlowrey 2020-07-15 19:32:33 -04:00 committed by Joshua Yanovski
parent 75761b60d9
commit 3bc57b4087

View File

@ -20,6 +20,7 @@ pub struct ServerSettings {
pub start_time: f64,
pub admins: Vec<String>,
pub whitelist: Vec<String>,
pub banlist: Vec<String>,
/// When set to None, loads the default map file (if available); otherwise,
/// uses the value of the file options to decide how to proceed.
pub map_file: Option<FileOpts>,
@ -44,6 +45,7 @@ impl Default for ServerSettings {
map_file: None,
admins: Vec::new(),
whitelist: Vec::new(),
banlist: Vec::new(),
persistence_db_dir: "saves".to_owned(),
max_view_distance: Some(30),
banned_words_files: Vec::new(),