Class JsonFailedAttemptsStore
java.lang.Object
net.strokkur.passwordwhitelist.data.JsonFailedAttemptsStore
- All Implemented Interfaces:
FailedAttemptsStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetFailedAttempts(UUID uuid) Get the number of failed attemptsvoidreload()Reload the failed attempts from disk.voidsetFailedAttempts(UUID uuid, int value) Set the number of failed attemptsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.strokkur.passwordwhitelist.data.FailedAttemptsStore
incrementFailedAttempts
-
Constructor Details
-
JsonFailedAttemptsStore
-
-
Method Details
-
reload
Description copied from interface:FailedAttemptsStoreReload the failed attempts from disk.- Specified by:
reloadin interfaceFailedAttemptsStore- Throws:
IOException- if an exception occurs while reading the file
-
setFailedAttempts
Description copied from interface:FailedAttemptsStoreSet the number of failed attempts- Specified by:
setFailedAttemptsin interfaceFailedAttemptsStore- 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
Description copied from interface:FailedAttemptsStoreGet the number of failed attempts- Specified by:
getFailedAttemptsin interfaceFailedAttemptsStore- Parameters:
uuid- uuid of the connecting player- Returns:
- number of failed attempts
-