From 398912353b13f310f9804640c54eb5208eef22bc Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 3 Nov 2016 16:28:16 +0100 Subject: [PATCH] Minor fix and additon --- .../java/buttondevteam/chat/commands/CommandCaller.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/buttondevteam/chat/commands/CommandCaller.java b/src/main/java/buttondevteam/chat/commands/CommandCaller.java index 6aff7dd..6efbf5f 100644 --- a/src/main/java/buttondevteam/chat/commands/CommandCaller.java +++ b/src/main/java/buttondevteam/chat/commands/CommandCaller.java @@ -28,7 +28,8 @@ public class CommandCaller implements CommandExecutor { { PluginCommand pc = ((JavaPlugin) c.getPlugin()).getCommand(c.GetCommandPath()); if (pc == null) - new Exception("Can't find top-level command: " + c.GetCommandPath()).printStackTrace(); + new Exception("Can't find top-level command: " + c.GetCommandPath() + " for plugin: " + + c.getPlugin().getName()).printStackTrace(); else pc.setExecutor(instance); } @@ -66,8 +67,8 @@ public class CommandCaller implements CommandExecutor { if (!cmd.OnCommand(sender, alias, cmdargs)) sender.sendMessage(cmd.GetHelpText(alias)); } catch (Exception e) { - TBMCCoreAPI.SendException( - "Failed to execute command " + cmd.GetCommandPath() + " with arguments " + cmdargs, e); + TBMCCoreAPI.SendException("Failed to execute command /" + cmd.GetCommandPath() + " with arguments " + + Arrays.toString(cmdargs), e); } return true; }