Skip to content

Commit

Permalink
Fixed minor issue with GRIEFDEFENDER work zone implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Picono435 committed Jun 2, 2023
1 parent b36378a commit 8a2c451
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public boolean isInWorkZone(Player player) {
List<String> regions = FileCreator.getJobsConfig().getStringList("jobs." + jp.getJob().getID() + "." + requiredField.getName());
Claim claim = GriefDefender.getCore().getClaimAt(player.getLocation());
if(claim == null || claim.isWilderness()) return regions.contains("wilderness");
return regions.contains(claim.toString());
return regions.contains(claim.getUniqueId().toString());
}
}

0 comments on commit 8a2c451

Please sign in to comment.