1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-16 19:44:15 +02:00

Skip npc's when doing cleanup.

This commit is contained in:
KHobbits
2014-04-29 04:42:55 +01:00
parent 498ecdd8e1
commit 714efc48a0

View File

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