Add command description multilingual

This commit is contained in:
方块君
2022-05-08 10:33:53 +08:00
committed by Melledy
parent 257a92f3ef
commit a46d58e5f6
40 changed files with 306 additions and 115 deletions

View File

@@ -12,10 +12,14 @@ import java.util.List;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "givechar", usage = "givechar <avatarId> [level]",
description = "Gives the player a specified character", aliases = {"givec"}, permission = "player.givechar")
@Command(label = "givechar", usage = "givechar <avatarId> [level]", aliases = {"givec"}, permission = "player.givechar")
public final class GiveCharCommand implements CommandHandler {
@Override
public String description() {
return translate("commands.giveChar.description");
}
@Override
public void execute(Player sender, Player targetPlayer, List<String> args) {
if (targetPlayer == null) {