Skip npc's when doing cleanup.

This commit is contained in:
KHobbits 2014-04-29 04:42:55 +01:00
parent 3bf3093177
commit e66ad88451

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;