From 3231b31282ce6ea69333ec2783862e6339a071f0 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 22 Mar 2020 19:46:04 +1300 Subject: [PATCH] VerboseConfig defaults to true if not set --- .../me/libraryaddict/disguise/DisguiseConfig.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/DisguiseConfig.java b/src/main/java/me/libraryaddict/disguise/DisguiseConfig.java index fdee4bca..b07be805 100644 --- a/src/main/java/me/libraryaddict/disguise/DisguiseConfig.java +++ b/src/main/java/me/libraryaddict/disguise/DisguiseConfig.java @@ -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"); if (!verbose) {