Fix warning #547 appearing for no good reason
This commit is contained in:
parent
0297b5c1b2
commit
e1400b7edf
@ -41,8 +41,12 @@ public class DisguiseCommandConfig {
|
|||||||
for (String name : config.getKeys(false)) {
|
for (String name : config.getKeys(false)) {
|
||||||
DisguiseCommand command = commands.get(name);
|
DisguiseCommand command = commands.get(name);
|
||||||
|
|
||||||
|
if (!config.isConfigurationSection(name)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (command == null) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user