mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Added banlist to server settings and added default value
This commit is contained in:
parent
75761b60d9
commit
3bc57b4087
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user