1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-10 00:28:22 +02:00

Skip npc's when doing cleanup.

This commit is contained in:
KHobbits
2014-04-29 04:42:55 +01:00
parent b8a5fa294d
commit 921c4f82ef

View File

@@ -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;