reverse ownerID comparison to account for administrative claims

Administrative claims leave the ownerID field null.
This commit is contained in:
RoboMWM committed 2018-09-23 11:19:30 -07:00
1 parent bda1c180ec
commit 77a011dd43
2 files changed
+3 -1

No files matched your search

@@ -61,7 +61,7 @@ class CleanupUnusedClaimPreTask implements Runnable
for (Claim claim : GriefPrevention.instance.dataStore.getClaims())
{
if (claim.ownerID.equals(ownerID))
if (ownerID.equals(claim.ownerID))
{
claimToExpire = claim;
break;
@@ -18,6 +18,8 @@ public class MetricsHandler
{
metrics = new Metrics(plugin);
addSimplePie("custom_build", plugin.getDescription().getVersion().equals("15.2.2"));
//enums and etc. would be amazing.
//PvP - only send PvP configs for those who use them