Added some details to internal error msg
This commit is contained in:
parent
98b58dd4b9
commit
80d424d6f8
1 changed files with 6 additions and 2 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Reference in a new issue