diff --git a/Essentials/src/main/java/com/earth2me/essentials/signs/SignWarp.java b/Essentials/src/main/java/com/earth2me/essentials/signs/SignWarp.java index edb64f66e33..3f806811e1e 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/signs/SignWarp.java +++ b/Essentials/src/main/java/com/earth2me/essentials/signs/SignWarp.java @@ -4,6 +4,7 @@ import com.earth2me.essentials.Trade; import com.earth2me.essentials.User; import net.ess3.api.IEssentials; +import net.ess3.api.TranslatableException; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import java.util.concurrent.CompletableFuture; @@ -25,6 +26,10 @@ protected boolean onSignCreate(final ISign sign, final User player, final String try { ess.getWarps().getWarp(warpName); } catch (final Exception ex) { + if (ex instanceof TranslatableException) { + final TranslatableException te = (TranslatableException) ex; + throw new SignException(ex, te.getTlKey(), te.getArgs()); + } throw new SignException(ex, "errorWithMessage", ex.getMessage()); } final String group = sign.getLine(2);