Skip to content

Commit 4cec449

Browse files
committed
Catch the error if worldguard isn't installed
1 parent a74e2db commit 4cec449

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<properties>
1212
<res>${project.basedir}/res/</res>
13-
<revision>3.68.1</revision>
13+
<revision>3.68.2</revision>
1414
</properties>
1515

1616
<repositories>

src/main/java/com/trophonix/tradeplus/TradePlus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public void saveConfig() {
8787
@Override public void onLoad() {
8888
try {
8989
WorldGuardHook.init();
90-
} catch (Exception ignored) {
91-
getLogger().info("Failed to hook into worldguard.");
90+
} catch (Throwable ignored) {
91+
getLogger().info("Failed to hook into worldguard. Ignore this if you don't have worldguard.");
9292
}
9393
}
9494

0 commit comments

Comments
 (0)