VerboseConfig defaults to true if not set
This commit is contained in:
parent
7cedac0980
commit
3231b31282
@ -462,7 +462,17 @@ public class DisguiseConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean verbose = config.getBoolean("VerboseConfig");
|
boolean verbose;
|
||||||
|
|
||||||
|
if (config.contains("VerboseConfig")) {
|
||||||
|
verbose = config.getBoolean("VerboseConfig");
|
||||||
|
} else {
|
||||||
|
DisguiseUtilities.getLogger()
|
||||||
|
.info("As 'VerboseConfig' hasn't been set, it is assumed true. Set it in your config to remove " +
|
||||||
|
"these messages!");
|
||||||
|
verbose = true;
|
||||||
|
}
|
||||||
|
|
||||||
boolean changed = config.getBoolean("ChangedConfig");
|
boolean changed = config.getBoolean("ChangedConfig");
|
||||||
|
|
||||||
if (!verbose) {
|
if (!verbose) {
|
||||||
|
Loading…
Reference in New Issue
Block a user