Clear logins data on removing all data (ncp remove *).

This commit is contained in:
asofold 2013-02-27 18:23:32 +01:00
parent e9deb059a3
commit 4a9f82ef0c

View File

@ -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();
}
}