Using annotation key translation

This commit is contained in:
方块君
2022-05-08 14:44:14 +08:00
committed by Melledy
Unverified
parent ef3579da82
commit 3a5503de72
40 changed files with 53 additions and 227 deletions
@@ -10,7 +10,7 @@ import java.util.List;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "teleport", usage = "teleport <x> <y> <z> [scene id]", aliases = {"tp"}, permission = "player.teleport")
@Command(label = "teleport", usage = "teleport <x> <y> <z> [scene id]", aliases = {"tp"}, permission = "player.teleport", description = "commands.teleport.description")
public final class TeleportCommand implements CommandHandler {
private float parseRelative(String input, Float current) { // TODO: Maybe this will be useful elsewhere later
@@ -24,11 +24,6 @@ public final class TeleportCommand implements CommandHandler {
return current;
}
@Override
public String description() {
return translate("commands.teleport.description");
}
@Override
public void execute(Player sender, Player targetPlayer, List<String> args) {
if (targetPlayer == null) {