Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Catch GP exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Aug 18, 2015
1 parent a14e738 commit 0843f19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -314,7 +314,7 @@
<dependency>
<groupId>com.cnaude.griefprevention</groupId>
<artifactId>GriefPrevention</artifactId>
<version>11.9</version>
<version>12.1</version>
</dependency>

<!-- Testing only -->
Expand Down
Expand Up @@ -41,9 +41,13 @@ public GriefPreventionHook(PurpleIRC plugin) {
public boolean isMuted(Player player) {
plugin.logDebug("GriefPrevention: " + player.getDisplayName());
if (gp != null) {
return gp.dataStore.isSoftMuted(player.getUniqueId());
try {
return gp.dataStore.isSoftMuted(player.getUniqueId());
} catch (Exception ex) {
plugin.logError(ex.getMessage());
}
}
return false;
}

}

0 comments on commit 0843f19

Please sign in to comment.