From 8a2c45100df557f3ec660f7feb316e0eb7eefe10 Mon Sep 17 00:00:00 2001 From: Picono435 Date: Fri, 2 Jun 2023 20:24:04 +0100 Subject: [PATCH] Fixed minor issue with GRIEFDEFENDER work zone implementation --- .../picojobs/hooks/workzones/GriefDefenderImplementation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/picono435/picojobs/hooks/workzones/GriefDefenderImplementation.java b/src/main/java/com/gmail/picono435/picojobs/hooks/workzones/GriefDefenderImplementation.java index f39c6e10..7c062b40 100644 --- a/src/main/java/com/gmail/picono435/picojobs/hooks/workzones/GriefDefenderImplementation.java +++ b/src/main/java/com/gmail/picono435/picojobs/hooks/workzones/GriefDefenderImplementation.java @@ -31,6 +31,6 @@ public boolean isInWorkZone(Player player) { List 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()); } } \ No newline at end of file