mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-27 02:21:22 +01:00
parent
ee64f7c4ff
commit
58828d7924
@ -121,9 +121,6 @@ public class Teleport implements net.ess3.api.ITeleport {
|
|||||||
|
|
||||||
if (LocationUtil.isBlockUnsafeForUser(teleportee, loc.getWorld(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ())) {
|
if (LocationUtil.isBlockUnsafeForUser(teleportee, loc.getWorld(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ())) {
|
||||||
if (ess.getSettings().isTeleportSafetyEnabled()) {
|
if (ess.getSettings().isTeleportSafetyEnabled()) {
|
||||||
if (teleportee.getBase().isInsideVehicle()) {
|
|
||||||
teleportee.getBase().leaveVehicle();
|
|
||||||
}
|
|
||||||
if (ess.getSettings().isForceDisableTeleportSafety()) {
|
if (ess.getSettings().isForceDisableTeleportSafety()) {
|
||||||
teleportee.getBase().teleport(loc, cause);
|
teleportee.getBase().teleport(loc, cause);
|
||||||
} else {
|
} else {
|
||||||
@ -133,9 +130,6 @@ public class Teleport implements net.ess3.api.ITeleport {
|
|||||||
throw new Exception(tl("unsafeTeleportDestination", loc.getWorld().getName(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()));
|
throw new Exception(tl("unsafeTeleportDestination", loc.getWorld().getName(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (teleportee.getBase().isInsideVehicle()) {
|
|
||||||
teleportee.getBase().leaveVehicle();
|
|
||||||
}
|
|
||||||
if (ess.getSettings().isForceDisableTeleportSafety()) {
|
if (ess.getSettings().isForceDisableTeleportSafety()) {
|
||||||
teleportee.getBase().teleport(loc, cause);
|
teleportee.getBase().teleport(loc, cause);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user