mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01:00
parent
a8452b4615
commit
cd06e737e1
@ -4,6 +4,7 @@ import com.earth2me.essentials.ChargeException;
|
|||||||
import com.earth2me.essentials.Trade;
|
import com.earth2me.essentials.Trade;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import net.ess3.api.IEssentials;
|
import net.ess3.api.IEssentials;
|
||||||
|
import net.ess3.api.TranslatableException;
|
||||||
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
||||||
|
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
@ -25,6 +26,10 @@ public class SignWarp extends EssentialsSign {
|
|||||||
try {
|
try {
|
||||||
ess.getWarps().getWarp(warpName);
|
ess.getWarps().getWarp(warpName);
|
||||||
} catch (final Exception ex) {
|
} 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());
|
throw new SignException(ex, "errorWithMessage", ex.getMessage());
|
||||||
}
|
}
|
||||||
final String group = sign.getLine(2);
|
final String group = sign.getLine(2);
|
||||||
|
Loading…
Reference in New Issue
Block a user