Clear chat.logins data on reload.

This commit is contained in:
asofold 2012-12-27 15:31:50 +01:00
parent e8208a12c5
commit 09e16a7231

View File

@ -7,10 +7,11 @@ import org.bukkit.entity.Player;
import fr.neatmonster.nocheatplus.checks.Check;
import fr.neatmonster.nocheatplus.checks.CheckType;
import fr.neatmonster.nocheatplus.command.INotifyReload;
import fr.neatmonster.nocheatplus.utilities.ActionFrequency;
import fr.neatmonster.nocheatplus.utilities.TickTask;
public class Logins extends Check {
public class Logins extends Check implements INotifyReload{
/** Per world count (only used if set in config). */
private final Map<String, ActionFrequency> counts = new HashMap<String, ActionFrequency>();
@ -40,4 +41,9 @@ public class Logins extends Check {
return cancel;
}
@Override
public void onReload() {
counts.clear();
}
}