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,9 +38,11 @@ public class RespawnTask extends BukkitRunnable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (player.getWorld() == location.getWorld()) {
|
||||||
if (player.getLocation().distance(location) > 2) {
|
if (player.getLocation().distance(location) > 2) {
|
||||||
PlayerUtil.secureTeleport(player, location);
|
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