diff --git a/src/cc/co/evenprime/bukkit/nocheat/player/NoCheatPlayerImpl.java b/src/cc/co/evenprime/bukkit/nocheat/player/NoCheatPlayerImpl.java index 9e7d9a01..8539deaa 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/player/NoCheatPlayerImpl.java +++ b/src/cc/co/evenprime/bukkit/nocheat/player/NoCheatPlayerImpl.java @@ -80,10 +80,14 @@ public class NoCheatPlayerImpl implements NoCheatPlayer { } public void setLastUsedTime(long currentTimeInMilliseconds) { - this.lastUsedTime = System.currentTimeMillis(); + this.lastUsedTime = currentTimeInMilliseconds; } public boolean shouldBeRemoved(long currentTimeInMilliseconds) { + if(lastUsedTime > currentTimeInMilliseconds) { + // Should never happen, but if it does, fix it somewhat + lastUsedTime = currentTimeInMilliseconds; + } return lastUsedTime + 60000L < currentTimeInMilliseconds; }