mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-25 03:55:22 +01:00
Fix respawn task console errors
This commit is contained in:
parent
e8dfdd961a
commit
62781f9f88
@ -38,8 +38,10 @@ public class RespawnTask extends BukkitRunnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (player.getLocation().distance(location) > 2) {
|
||||
PlayerUtil.secureTeleport(player, location);
|
||||
if (player.getWorld() == location.getWorld()) {
|
||||
if (player.getLocation().distance(location) > 2) {
|
||||
PlayerUtil.secureTeleport(player, location);
|
||||
}
|
||||
}
|
||||
|
||||
DGlobalPlayer dPlayer = DungeonsXL.getInstance().getDPlayers().getByPlayer(player);
|
||||
|
Loading…
Reference in New Issue
Block a user