mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +02:00
Clear chat.logins data on reload.
This commit is contained in:
parent
e8208a12c5
commit
09e16a7231
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user