Forgot that continue
This commit is contained in:
parent
9a8baf5653
commit
34a309b49f
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue