mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-16 23:52:37 +08:00
Add command description multilingual
This commit is contained in:
@@ -10,8 +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"},
|
||||
description = "Change the player's position.", permission = "player.teleport")
|
||||
@Command(label = "teleport", usage = "teleport <x> <y> <z> [scene id]", aliases = {"tp"}, permission = "player.teleport")
|
||||
public final class TeleportCommand implements CommandHandler {
|
||||
|
||||
private float parseRelative(String input, Float current) { // TODO: Maybe this will be useful elsewhere later
|
||||
@@ -25,6 +24,11 @@ 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) {
|
||||
|
||||
Reference in New Issue
Block a user