mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
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)) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user