reverse ownerID comparison to account for administrative claims
Administrative claims leave the ownerID field null.
This commit is contained in:
parent
bda1c180ec
commit
77a011dd43
|
|
@ -61,7 +61,7 @@ class CleanupUnusedClaimPreTask implements Runnable
|
||||||
|
|
||||||
for (Claim claim : GriefPrevention.instance.dataStore.getClaims())
|
for (Claim claim : GriefPrevention.instance.dataStore.getClaims())
|
||||||
{
|
{
|
||||||
if (claim.ownerID.equals(ownerID))
|
if (ownerID.equals(claim.ownerID))
|
||||||
{
|
{
|
||||||
claimToExpire = claim;
|
claimToExpire = claim;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ public class MetricsHandler
|
||||||
{
|
{
|
||||||
metrics = new Metrics(plugin);
|
metrics = new Metrics(plugin);
|
||||||
|
|
||||||
|
addSimplePie("custom_build", plugin.getDescription().getVersion().equals("15.2.2"));
|
||||||
|
|
||||||
//enums and etc. would be amazing.
|
//enums and etc. would be amazing.
|
||||||
|
|
||||||
//PvP - only send PvP configs for those who use them
|
//PvP - only send PvP configs for those who use them
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user