mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 21:10:54 +00:00
commit
d320ad963e
@ -574,6 +574,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 {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user