Forgot that continue

This commit is contained in:
Norbi Peti 2016-11-03 20:03:34 +01:00
parent 9a8baf5653
commit 34a309b49f

View file

@ -35,6 +35,12 @@ public class CommandCaller implements CommandExecutor {
if (c.GetCommandPath() == null) {
TBMCCoreAPI.SendException("An error occured while registering commands",
new Exception("Command " + entry.getKey() + " has no command path!"));
continue;
}
if (c.getPlugin() == null) {
TBMCCoreAPI.SendException("An error occured while registering commands",
new Exception("Command " + entry.getKey() + " has no plugin!"));
continue;
}
if (!c.GetCommandPath().contains(" ")) // Top-level command
{