diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandsethome.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandsethome.java index 5033b276233..7fefb347998 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandsethome.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandsethome.java @@ -53,8 +53,11 @@ public void run(final Server server, final User user, final String commandLabel, } final Location location = user.getLocation(); - if ((!ess.getSettings().isTeleportSafetyEnabled() || !ess.getSettings().isForceDisableTeleportSafety()) && LocationUtil.isBlockUnsafeForUser(ess, usersHome, location.getWorld(), location.getBlockX(), location.getBlockY(), location.getBlockZ())) { - throw new Exception(tl("unsafeTeleportDestination", location.getWorld().getName(), location.getBlockX(), location.getBlockY(), location.getBlockZ())); + if (LocationUtil.isBlockUnsafeForUser(ess, usersHome, location.getWorld(), location.getBlockX(), location.getBlockY(), location.getBlockZ())) { + if (!ess.getSettings().isTeleportSafetyEnabled() + || !ess.getSettings().isForceDisableTeleportSafety()) { + throw new Exception(tl("unsafeTeleportDestination", location.getWorld().getName(), location.getBlockX(), location.getBlockY(), location.getBlockZ())); + } } if (ess.getSettings().isConfirmHomeOverwrite() && usersHome.hasHome(name) && (!name.equals(usersHome.getLastHomeConfirmation()) || name.equals(usersHome.getLastHomeConfirmation()) && System.currentTimeMillis() - usersHome.getLastHomeConfirmationTimestamp() > TimeUnit.MINUTES.toMillis(2))) { diff --git a/Essentials/src/main/resources/messages.properties b/Essentials/src/main/resources/messages.properties index 1e347af755d..c6cd4ae0405 100644 --- a/Essentials/src/main/resources/messages.properties +++ b/Essentials/src/main/resources/messages.properties @@ -1453,7 +1453,7 @@ unlinkCommandUsage=/ unlinkCommandUsage1=/ unlinkCommandUsage1Description=Unlinks your Minecraft account from the currently linked Discord account. unmutedPlayer=\u00a76Player\u00a7c {0} \u00a76unmuted. -unsafeTeleportDestination=\u00a74The teleport destination is unsafe and teleport-safety is disabled. +unsafeTeleportDestination=\u00a74The teleport destination is unsafe and teleport-safety rules are preventing you from bypassing this. unsupportedBrand=\u00a74The server platform you are currently running does not provide the capabilities for this feature. unsupportedFeature=\u00a74This feature is not supported on the current server version. unvanishedReload=\u00a74A reload has forced you to become visible. diff --git a/Essentials/src/main/resources/messages_en_GB.properties b/Essentials/src/main/resources/messages_en_GB.properties index 8f07e10f886..0a6eceff813 100644 --- a/Essentials/src/main/resources/messages_en_GB.properties +++ b/Essentials/src/main/resources/messages_en_GB.properties @@ -1432,7 +1432,7 @@ unlinkCommandUsage=/ unlinkCommandUsage1=/ unlinkCommandUsage1Description=Unlinks your Minecraft account from the currently linked Discord account. unmutedPlayer=§6Player§c {0} §6unmuted. -unsafeTeleportDestination=§4The teleport destination is unsafe and teleport-safety is disabled. +unsafeTeleportDestination=§4The teleport destination is unsafe and teleport-safety rules are preventing you from bypassing this. unsupportedBrand=§4The server platform you are currently running does not provide the capabilities for this feature. unsupportedFeature=§4This feature is not supported on the current server version. unvanishedReload=§4A reload has forced you to become visible. diff --git a/Essentials/src/main/resources/messages_ru.properties b/Essentials/src/main/resources/messages_ru.properties index d862ebb70ec..8ead20bd6ab 100644 --- a/Essentials/src/main/resources/messages_ru.properties +++ b/Essentials/src/main/resources/messages_ru.properties @@ -1452,7 +1452,7 @@ unlinkCommandUsage=/ unlinkCommandUsage1=/ unlinkCommandUsage1Description=Отвязывает ваш аккаунт Minecraft от вашего аккаунта Discord. unmutedPlayer=§6Игрок§c {0} §6снова может писать в чат. -unsafeTeleportDestination=§4Место назначения телепортации небезопасно, а защита при телепортации отключена. +unsafeTeleportDestination=§4Место назначения телепортации небезопасно, и правила защиты при телепортации не позволяют обойти ограничение. unsupportedBrand=§4Ваше текущее серверное ядро не поддерживает эту функцию. unsupportedFeature=§4Эта функция не поддерживается на текущей версии сервера. unvanishedReload=§4Из-за перезагрузки вы вновь стали видимы.