diff --git a/gradle.properties b/gradle.properties index 1dbae1d..7f80bea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -pluginVersion=1.3.4 +pluginVersion=1.3.5 diff --git a/src/main/java/io/th0rgal/protectionlib/compatibilities/GriefPreventionCompat.java b/src/main/java/io/th0rgal/protectionlib/compatibilities/GriefPreventionCompat.java index 045f4de..9c7eb00 100644 --- a/src/main/java/io/th0rgal/protectionlib/compatibilities/GriefPreventionCompat.java +++ b/src/main/java/io/th0rgal/protectionlib/compatibilities/GriefPreventionCompat.java @@ -59,7 +59,7 @@ public boolean canUse(Player player, Location target) { private boolean checkPermission(Player player, Location target, ClaimPermission permission) { PlayerData playerData = GriefPrevention.instance.dataStore.getPlayerData(player.getUniqueId()); Claim claim = GriefPrevention.instance.dataStore.getClaimAt(target, false, playerData.lastClaim); - if (playerData.ignoreClaims) return true; + if (claim == null || playerData.ignoreClaims) return true; playerData.lastClaim = claim; return claim.checkPermission(player, permission, null) == null;