1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 01:25:26 +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); 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;