From 34a309b49f8af6752092c07a087c895b28928e25 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 3 Nov 2016 20:03:34 +0100 Subject: [PATCH] Forgot that continue --- .../java/buttondevteam/chat/commands/CommandCaller.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/buttondevteam/chat/commands/CommandCaller.java b/src/main/java/buttondevteam/chat/commands/CommandCaller.java index 293247a..ee35690 100644 --- a/src/main/java/buttondevteam/chat/commands/CommandCaller.java +++ b/src/main/java/buttondevteam/chat/commands/CommandCaller.java @@ -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 {