mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 17:05:20 +01:00
Update translation & bug fix (#1472)
Original commits: * Update translation * Bug fix * Update translation * Update Announcement.json
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user