send safeguard
All checks were successful
/ Auto-Build-App (push) Successful in 1m53s

This commit is contained in:
pietru 2024-11-09 13:23:59 +01:00
parent 3b80b5bf8c
commit a7cfff821c

View file

@ -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);
} }
} }