This commit is contained in:
parent
ed07f7955c
commit
a01fc77e2b
1 changed files with 9 additions and 0 deletions
|
@ -36,6 +36,15 @@ public class TextCommands {
|
||||||
packet.playerUniqueId=account.getUniqueId();
|
packet.playerUniqueId=account.getUniqueId();
|
||||||
packet.setupAndSend(channelHandlerContext);
|
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) -> {
|
commands.put("reload_regions",(args, networkIdentity, channelHandlerContext) -> {
|
||||||
reload_regions();
|
reload_regions();
|
||||||
Account account = ServerSingletons.getAccount(networkIdentity);
|
Account account = ServerSingletons.getAccount(networkIdentity);
|
||||||
|
|
Loading…
Reference in a new issue