Make Logging configurable

This commit is contained in:
Snowiiii committed 2024-10-11 16:41:52 +02:00
1 parent 9ac4bdbd50
commit bcbde20623
8 files changed
+141 -15

No files matched your search

+6 -2
View File
@@ -4,11 +4,15 @@ use serde::{Deserialize, Serialize};
pub struct CommandsConfig {
/// Are commands from the Console accepted ?
pub use_console: bool,
// TODO: commands...
/// Should be commands from players be logged in console?
pub log_console: bool, // TODO: commands...
}
impl Default for CommandsConfig {
fn default() -> Self {
Self { use_console: true }
Self {
use_console: true,
log_console: true,
}
}
}