Fix usage & update zh-CN.json

This commit is contained in:
tester233
2022-05-24 21:18:59 +08:00
committed by Melledy
parent 661854ec77
commit 9b9e29b5d3
5 changed files with 43 additions and 43 deletions

View File

@@ -39,7 +39,7 @@ public final class SendMailCommand implements CommandHandler {
MailBuilder mailBuilder;
switch (args.get(0).toLowerCase()) {
case "help" -> {
CommandHandler.sendMessage(sender, translate(sender, this.getClass().getAnnotation(Command.class).description()) + "\nUsage: " + this.getClass().getAnnotation(Command.class).usage());
CommandHandler.sendMessage(sender, translate(sender, "commands.sendMail.usage"));
return;
}
case "all" -> mailBuilder = new MailBuilder(true, new Mail());