mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Skip npc's when doing cleanup.
This commit is contained in:
parent
3bf3093177
commit
e66ad88451
1 changed files with 5 additions and 0 deletions
|
@ -300,6 +300,11 @@ public class Commandessentials extends EssentialsCommand
|
|||
user.setLastLogin(currTime);
|
||||
}
|
||||
|
||||
if (user.isNPC())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
long timeDiff = currTime - lastLog;
|
||||
long milliDays = daysArg * 24L * 60L * 60L * 1000L;
|
||||
int homeCount = user.getHomes().size();
|
||||
|
|
Loading…
Reference in a new issue