Inactive 90 days players are now targetable.
With slash commands like /acb and /deleteallclaims for example.
This commit is contained in:
@@ -2493,10 +2493,10 @@ public class GriefPrevention extends JavaPlugin
|
||||
if(playerID == null) continue;
|
||||
long lastSeen = player.getLastPlayed();
|
||||
|
||||
//if the player has been seen in the last 30 days, cache his name/UUID pair
|
||||
//if the player has been seen in the last 90 days, cache his name/UUID pair
|
||||
long diff = now - lastSeen;
|
||||
long daysDiff = diff / millisecondsPerDay;
|
||||
if(daysDiff <= 30)
|
||||
if(daysDiff <= 90)
|
||||
{
|
||||
String playerName = player.getName();
|
||||
if(playerName == null) continue;
|
||||
|
||||
Reference in New Issue
Block a user