mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-26 10:28:05 +01:00
Clear logins data on removing all data (ncp remove *).
This commit is contained in:
parent
e9deb059a3
commit
4a9f82ef0c
@ -7,10 +7,12 @@ import org.bukkit.entity.Player;
|
||||
|
||||
import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.components.IData;
|
||||
import fr.neatmonster.nocheatplus.components.IRemoveData;
|
||||
import fr.neatmonster.nocheatplus.utilities.ActionFrequency;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
public class Logins extends Check{
|
||||
public class Logins extends Check implements IRemoveData{
|
||||
|
||||
/** Per world count (only used if set in config). */
|
||||
private final Map<String, ActionFrequency> counts = new HashMap<String, ActionFrequency>();
|
||||
@ -47,4 +49,15 @@ public class Logins extends Check{
|
||||
counts.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public IData removeData(final String playerName) {
|
||||
// Ignore
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeAllData() {
|
||||
counts.clear();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user