diff --git a/src/main/java/net/pietru/cookie_utils/api/TextCommands.java b/src/main/java/net/pietru/cookie_utils/api/TextCommands.java index 0cd15b6..0d2b588 100644 --- a/src/main/java/net/pietru/cookie_utils/api/TextCommands.java +++ b/src/main/java/net/pietru/cookie_utils/api/TextCommands.java @@ -36,6 +36,15 @@ public class TextCommands { packet.playerUniqueId=account.getUniqueId(); packet.setupAndSend(channelHandlerContext); }); + commands.put("my_zone",(args, networkIdentity, channelHandlerContext) -> { + Player player = ServerSingletons.getPlayer(networkIdentity); + Account account = ServerSingletons.getAccount(networkIdentity); + + Vector3 pos = player.getPosition(); + MessagePacket packet = new MessagePacket("You are in "+player.zoneId); + packet.playerUniqueId=account.getUniqueId(); + packet.setupAndSend(channelHandlerContext); + }); commands.put("reload_regions",(args, networkIdentity, channelHandlerContext) -> { reload_regions(); Account account = ServerSingletons.getAccount(networkIdentity);