Added some details to internal error msg

This commit is contained in:
Norbi Peti 2016-11-19 18:58:06 +01:00
parent 98b58dd4b9
commit 80d424d6f8

View file

@ -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")) {