Skip to content

Commit

Permalink
Catch the error if worldguard isn't installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Trophonix committed May 19, 2020
1 parent a74e2db commit 4cec449
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<properties>
<res>${project.basedir}/res/</res>
<revision>3.68.1</revision>
<revision>3.68.2</revision>
</properties>

<repositories>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/trophonix/tradeplus/TradePlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}

Expand Down

0 comments on commit 4cec449

Please sign in to comment.