adapt: adapt to GMLIB v0.12.6
This commit is contained in:
+20
-16
@@ -1,18 +1,22 @@
|
||||
#pragma once
|
||||
#include "Global.h"
|
||||
#include <iostream>
|
||||
|
||||
std::string defaultConfig = R"({
|
||||
"ConsoleLog": {
|
||||
"JoinMessage": true,
|
||||
"LeftMessage": true,
|
||||
"DeathMessage": true
|
||||
},
|
||||
"FileLog": {
|
||||
"Enabled": false,
|
||||
"Path": "./logs/DeathLog.log"
|
||||
},
|
||||
"ServerSideTranslation": {
|
||||
"Enabled": false,
|
||||
"Language": "en_US"
|
||||
}
|
||||
})";
|
||||
struct Config {
|
||||
int version = 1;
|
||||
|
||||
struct consoleLog {
|
||||
bool JoinMessage = true;
|
||||
bool LeftMessage = true;
|
||||
bool DeathMessage = true;
|
||||
} ConsoleLog;
|
||||
|
||||
struct fileLog {
|
||||
bool Enabled = false;
|
||||
std::string Path = "./logs/DeathLog.log";
|
||||
} FileLog;
|
||||
|
||||
struct serverSideTranslation {
|
||||
bool Enabled = false;
|
||||
std::string Language = "en_US";
|
||||
} ServerSideTranslation;
|
||||
};
|
||||
Reference in New Issue
Block a user