reverse ownerID comparison to account for administrative claims
Administrative claims leave the ownerID field null.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user