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
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (player.getLocation().distance(location) > 2) {
|
if (player.getWorld() == location.getWorld()) {
|
||||||
PlayerUtil.secureTeleport(player, location);
|
if (player.getLocation().distance(location) > 2) {
|
||||||
|
PlayerUtil.secureTeleport(player, location);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DGlobalPlayer dPlayer = DungeonsXL.getInstance().getDPlayers().getByPlayer(player);
|
DGlobalPlayer dPlayer = DungeonsXL.getInstance().getDPlayers().getByPlayer(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user