Fix warning #547 appearing for no good reason

This commit is contained in:
libraryaddict 2021-02-03 06:41:14 +13:00
parent 0297b5c1b2
commit e1400b7edf

View File

@ -41,8 +41,12 @@ public class DisguiseCommandConfig {
for (String name : config.getKeys(false)) {
DisguiseCommand command = commands.get(name);
if (!config.isConfigurationSection(name)) {
continue;
}
if (command == null) {
DisguiseUtilities.getLogger().warning("Unable to find a command '" + name + "'");
DisguiseUtilities.getLogger().warning("Config defines '" + name + "' as a command but that command doesn't exist?");
continue;
}