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
|
@ -299,6 +299,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;
|
||||||
|
|
Loading…
Reference in a new issue