Interface FailedAttemptsStore
- All Known Implementing Classes:
JsonFailedAttemptsStore
public interface FailedAttemptsStore
Represent a class which holds the amount of failed password attempts since the last login.
-
Method Summary
Modifier and TypeMethodDescriptionintgetFailedAttempts(UUID uuid) Get the number of failed attemptsdefault voidincrementFailedAttempts(UUID uuid) Increment the number of failed attempts by one.voidreload()Reload the failed attempts from disk.voidsetFailedAttempts(UUID uuid, int value) Set the number of failed attempts
-
Method Details
-
reload
Reload the failed attempts from disk.- Throws:
IOException- if an exception occurs while reading the file
-
incrementFailedAttempts
Increment the number of failed attempts by one.- Parameters:
uuid- uuid of the connecting player- Throws:
IOException- if an exception occurs while saving the data to disk
-
setFailedAttempts
Set the number of failed attempts- Parameters:
uuid- uuid of the connecting playervalue- the new number of failed attempts- Throws:
IOException- if an exception occurs while saving the data to disk
-
getFailedAttempts
Get the number of failed attempts- Parameters:
uuid- uuid of the connecting player- Returns:
- number of failed attempts
-