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