Commit d3889501 authored by Melledy's avatar Melledy Committed by GitHub
Browse files

Merge pull request #47 from alt3ri/patch-3

Adding /pos
parents fda20501 aeb335c8
...@@ -573,6 +573,17 @@ public final class PlayerCommands { ...@@ -573,6 +573,17 @@ public final class PlayerCommands {
} }
} }
} }
@Command(label = "pos",
usage = "Usage: pos", description = "Get coordinates.",
execution = Command.Execution.PLAYER)
public static class CordCommand implements CommandHandler {
@Override
public void execute(GenshinPlayer player, List<String> args) {
player.dropMessage(String.format("Coord: %.3f, %.3f, %.3f", player.getPos().getX(), player.getPos().getY(), player.getPos().getZ()));
}
}
@Command(label = "restart", usage = "Usage: restart", description = "Restarts the current session", execution = Command.Execution.PLAYER, permission = "player.restart") @Command(label = "restart", usage = "Usage: restart", description = "Restarts the current session", execution = Command.Execution.PLAYER, permission = "player.restart")
public static class RestartCommand implements CommandHandler { public static class RestartCommand implements CommandHandler {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment