Renovate Help Command

This commit is contained in:
Kam committed 2023-05-10 17:27:04 -04:00
1 parent d08e4fc925
commit e1c4c2b786
1 file changed
+5 -3
+5 -3
View File
@@ -36,9 +36,11 @@ public class HelpCommand extends CommandKamkeelBase{
}
CommandKamkeelBase command = parent.getCommand(args);
if(command == null)
throw new CommandException("Unknown command " + args[0]);
if(command == null){
sendError(sender, "Unknown command " + args[0]);
return;
}
if(command.subcommands.isEmpty()){
sender.addChatMessage(new ChatComponentTranslation(command.getCommandUsage(sender)));
return;