mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 03:38:28 +00:00
Allow unsafe homes when force-disable-teleport-safety is enabled (#4650)
This commit is contained in:
parent
3f857e3183
commit
3c60bcf2de
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public class Commandsethome extends EssentialsCommand {
|
|||
}
|
||||
|
||||
final Location location = user.getLocation();
|
||||
if (!ess.getSettings().isTeleportSafetyEnabled() && LocationUtil.isBlockUnsafeForUser(usersHome, location.getWorld(), location.getBlockX(), location.getBlockY(), location.getBlockZ())) {
|
||||
if ((!ess.getSettings().isTeleportSafetyEnabled() || !ess.getSettings().isForceDisableTeleportSafety()) && LocationUtil.isBlockUnsafeForUser(usersHome, location.getWorld(), location.getBlockX(), location.getBlockY(), location.getBlockZ())) {
|
||||
throw new Exception(tl("unsafeTeleportDestination", location.getWorld().getName(), location.getBlockX(), location.getBlockY(), location.getBlockZ()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue