Update translation & bug fix (#1472)

Original commits:

* Update translation

* Bug fix

* Update translation

* Update Announcement.json
This commit is contained in:
Tesutarin
2022-07-09 21:39:40 +08:00
committed by GitHub
parent c79ca3028f
commit 7bae35f51b
5 changed files with 26 additions and 27 deletions

View File

@@ -13,7 +13,7 @@ import java.util.Random;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "announce",
usage = "a <tpl templateId|refresh|revoke templateId|content>",
usage = "announce|a <\"tpl\" templateId|\"refresh\"|\"revoke\" templateId|content>",
permission = "server.announce",
aliases = {"a"},
description = "commands.announce.description",

View File

@@ -115,9 +115,9 @@ public final class HelpCommand implements CommandHandler {
builder.append(alias).append(" ");
}
}
builder.append("\n").append(translate(player, "commands.help.permission"));
builder.append("\n").append(translate(player, "commands.help.tip_need_permission"));
if(annotation.permission().isEmpty() || annotation.permission().isBlank()) {
builder.append(translate(player, "commands.help.no_permission"));
builder.append(translate(player, "commands.help.tip_need_no_permission"));
}
else {
builder.append(annotation.permission());