From 4cec4494e7ea7bd025d39ab1618341bcd30d4238 Mon Sep 17 00:00:00 2001 From: Lucas Cosolo Date: Tue, 19 May 2020 06:59:44 -0500 Subject: [PATCH] Catch the error if worldguard isn't installed --- pom.xml | 2 +- src/main/java/com/trophonix/tradeplus/TradePlus.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 85b948b..86d520a 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ ${project.basedir}/res/ - 3.68.1 + 3.68.2 diff --git a/src/main/java/com/trophonix/tradeplus/TradePlus.java b/src/main/java/com/trophonix/tradeplus/TradePlus.java index 44492ea..f212d00 100644 --- a/src/main/java/com/trophonix/tradeplus/TradePlus.java +++ b/src/main/java/com/trophonix/tradeplus/TradePlus.java @@ -87,8 +87,8 @@ public void saveConfig() { @Override public void onLoad() { try { WorldGuardHook.init(); - } catch (Exception ignored) { - getLogger().info("Failed to hook into worldguard."); + } catch (Throwable ignored) { + getLogger().info("Failed to hook into worldguard. Ignore this if you don't have worldguard."); } }