From 80d424d6f8819dc696d8ba3fe77a9c018c14e206 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sat, 19 Nov 2016 18:58:06 +0100 Subject: [PATCH] Added some details to internal error msg --- .../java/buttondevteam/chat/commands/CommandCaller.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/buttondevteam/chat/commands/CommandCaller.java b/src/main/java/buttondevteam/chat/commands/CommandCaller.java index 08b60ec..eff0c2b 100644 --- a/src/main/java/buttondevteam/chat/commands/CommandCaller.java +++ b/src/main/java/buttondevteam/chat/commands/CommandCaller.java @@ -78,9 +78,13 @@ public class CommandCaller implements CommandExecutor { sender.sendMessage(TBMCChatAPI.GetSubCommands(path)); return true; } - sender.sendMessage("§cInternal error: Command not registered to CommandCaller"); + String[] errormsg = new String[] { // + "§cInternal error: Command not registered to CommandCaller", // + "§cCommand: " + command.getName() + " - Args: " + Arrays.toString(args) + " - Path: " + path // + }; + sender.sendMessage(errormsg); if (sender != Bukkit.getConsoleSender()) - Bukkit.getConsoleSender().sendMessage("§cInternal error: Command not registered to CommandCaller"); + Bukkit.getConsoleSender().sendMessage(errormsg); return true; } if (cmd.GetModOnly() && !PluginMain.permission.has(sender, "tbmc.admin")) {