This commit is contained in:
parent
3b80b5bf8c
commit
a7cfff821c
1 changed files with 2 additions and 1 deletions
|
@ -248,9 +248,10 @@ public class TextCommands {
|
||||||
|
|
||||||
if (player!=null && zone!=null){
|
if (player!=null && zone!=null){
|
||||||
txt="[server] Sended "+player.getAccount().getDisplayName()+" to zone "+zoneId;
|
txt="[server] Sended "+player.getAccount().getDisplayName()+" to zone "+zoneId;
|
||||||
|
Zone old = player.getZone();
|
||||||
zone.addPlayer(player);
|
zone.addPlayer(player);
|
||||||
player.respawn(zone);
|
player.respawn(zone);
|
||||||
player.getZone().removePlayer(player);
|
old.removePlayer(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue