summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2014-04-29 04:42:55 +0100
committerKHobbits <rob@khobbits.co.uk>2014-04-29 04:42:55 +0100
commite66ad8845108b32ab8a8322f950d83cf3671c65b (patch)
treeaffb2b5bc9c2a176f806523b6d7cef9f274aa7e0
parent3bf30931773df7f807237eb7cb40d6c30fda6ba8 (diff)
downloadEssentials-e66ad8845108b32ab8a8322f950d83cf3671c65b.tar
Essentials-e66ad8845108b32ab8a8322f950d83cf3671c65b.tar.gz
Essentials-e66ad8845108b32ab8a8322f950d83cf3671c65b.tar.lz
Essentials-e66ad8845108b32ab8a8322f950d83cf3671c65b.tar.xz
Essentials-e66ad8845108b32ab8a8322f950d83cf3671c65b.zip
Skip npc's when doing cleanup.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandessentials.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java
index 5da28f0e7..6284bea6b 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java
@@ -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;