Move from isGM to Account Levels (#106)

Co-authored-by: dongresource <dongresource@protonmail.com>
This commit is contained in:
CakeLancelot
2020-09-21 21:26:12 -05:00
committed by GitHub
parent 5d8bb7f8a5
commit adf017b07c
10 changed files with 25 additions and 20 deletions

View File

@@ -24,7 +24,7 @@ std::string settings::XDTJSON = "tdata/xdt.json";
std::string settings::MOBJSON = "tdata/mobs.json";
std::string settings::PATHJSON = "tdata/paths.json";
std::string settings::MOTDSTRING = "Welcome to OpenFusion!";
bool settings::GM = true;
int settings::ACCLEVEL = 1;
void settings::init() {
INIReader reader("config.ini");
@@ -55,5 +55,5 @@ void settings::init() {
MOBJSON = reader.Get("shard", "mobdata", MOBJSON);
PATHJSON = reader.Get("shard", "pathdata", PATHJSON);
MOTDSTRING = reader.Get("shard", "motd", MOTDSTRING);
GM = reader.GetBoolean("shard", "gm", GM);
ACCLEVEL = reader.GetBoolean("shard", "accountlevel", ACCLEVEL);
}