mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-11 10:58:51 +01:00
Skip npc's when doing cleanup.
This commit is contained in:
parent
3bf3093177
commit
e66ad88451
@ -300,6 +300,11 @@ public class Commandessentials extends EssentialsCommand
|
|||||||
user.setLastLogin(currTime);
|
user.setLastLogin(currTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (user.isNPC())
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
long timeDiff = currTime - lastLog;
|
long timeDiff = currTime - lastLog;
|
||||||
long milliDays = daysArg * 24L * 60L * 60L * 1000L;
|
long milliDays = daysArg * 24L * 60L * 60L * 1000L;
|
||||||
int homeCount = user.getHomes().size();
|
int homeCount = user.getHomes().size();
|
||||||
|
Loading…
Reference in New Issue
Block a user