Interface UsernameValidityCheckEvent
-
- All Superinterfaces:
LuckPermsEvent
public interface UsernameValidityCheckEvent extends LuckPermsEvent
Called when the validity of a username is being tested.- Since:
- 5.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @NonNull StringgetUsername()Gets the username being tested.default booleanisValid()Gets if the username is currently considered to be valid.default voidsetValid(boolean valid)Sets if the username should be considered valid or not.@NonNull AtomicBooleanvalidityState()Gets the current validity state for the username.-
Methods inherited from interface net.luckperms.api.event.LuckPermsEvent
getEventType, getLuckPerms
-
-
-
-
Method Detail
-
validityState
@NonNull AtomicBoolean validityState()
Gets the current validity state for the username.- Returns:
- the validity state
-
isValid
default boolean isValid()
Gets if the username is currently considered to be valid.- Returns:
- if the username is valid
-
setValid
default void setValid(boolean valid)
Sets if the username should be considered valid or not.- Parameters:
valid- whether the username is valid
-
-