Interface UserManager<T extends User>
- All Known Implementing Classes:
AbstractUserManager, StandardUserManager
-
Method Summary
Modifier and TypeMethodDescriptiongetByUsername(String name) Get a user object by nameGets the instance responsible for unloading unneeded users.booleangiveDefaultIfNeeded(User user) Gives the user the default group if necessary.voidInvalidates thePermissionCalculators for *loaded* users.voidInvalidates the cached data for *loaded* users.booleanisDefaultNode(net.luckperms.api.node.Node node) Gets whether the given node is a default node given bygiveDefaultIfNeeded(User).booleanisNonDefaultUser(User user) Check whether the user's state indicates that they should be persisted to storage.Reloads the data of all *online* users
-
Method Details
-
getOrMake
-
getByUsername
-
giveDefaultIfNeeded
Gives the user the default group if necessary.- Parameters:
user- the user to give to
-
isNonDefaultUser
Check whether the user's state indicates that they should be persisted to storage.- Parameters:
user- the user to check- Returns:
- true if the user should be saved
-
isDefaultNode
boolean isDefaultNode(net.luckperms.api.node.Node node) Gets whether the given node is a default node given bygiveDefaultIfNeeded(User).- Parameters:
node- the node- Returns:
- true if it is the default node
-
getHouseKeeper
UserHousekeeper getHouseKeeper()Gets the instance responsible for unloading unneeded users.- Returns:
- the housekeeper
-
loadAllUsers
CompletableFuture<Void> loadAllUsers()Reloads the data of all *online* users -
invalidateAllUserCaches
void invalidateAllUserCaches()Invalidates the cached data for *loaded* users. -
invalidateAllPermissionCalculators
void invalidateAllPermissionCalculators()Invalidates thePermissionCalculators for *loaded* users.
-