Don't expire land claims while owner is online.

This commit is contained in:
ryanhamshire 2016-05-04 16:46:48 -07:00
parent a509e33a03
commit 1ec0d3944b

View File

@ -40,6 +40,10 @@ class CleanupUnusedClaimPreTask implements Runnable
PlayerData ownerData = GriefPrevention.instance.dataStore.getPlayerDataFromStorage(claim.ownerID);
OfflinePlayer ownerInfo = Bukkit.getServer().getOfflinePlayer(claim.ownerID);
//expiration code uses last logout timestamp to decide whether to expire claims
//don't expire claims for online players
if(ownerInfo.isOnline()) return;
GriefPrevention.AddLogEntry("Looking for expired claims. Checking data for " + claim.ownerID.toString(), CustomLogEntryTypes.Debug, true);
//skip claims belonging to exempted players based on block totals in config