mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 07:36:42 +02:00
Skip npc's when doing cleanup.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user