PositionCommand.java 665 Bytes
Newer Older
KingRainbow44's avatar
KingRainbow44 committed
1
2
3
4
package emu.grasscutter.command.commands;

import emu.grasscutter.command.Command;
import emu.grasscutter.command.CommandHandler;
Melledy's avatar
Melledy committed
5
import emu.grasscutter.game.player.Player;
AnimeGitB's avatar
AnimeGitB committed
6
import emu.grasscutter.utils.Position;
KingRainbow44's avatar
KingRainbow44 committed
7
8
9

import java.util.List;

10
@Command(label = "position", aliases = {"pos"})
KingRainbow44's avatar
KingRainbow44 committed
11
12
13
public final class PositionCommand implements CommandHandler {

    @Override
AnimeGitB's avatar
AnimeGitB committed
14
    public void execute(Player sender, Player targetPlayer, List<String> args) {
15
        Position pos = targetPlayer.getPosition();
16
        CommandHandler.sendTranslatedMessage(sender, "commands.position.success",
AnimeGitB's avatar
AnimeGitB committed
17
                pos.getX(), pos.getY(), pos.getZ(), targetPlayer.getSceneId());
KingRainbow44's avatar
KingRainbow44 committed
18
19
    }
}