mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-25 19:14:26 +00:00
Add API bulk user lookup method (#4285)
This commit is contained in:
1 parent
cb77ed09be
commit
d07dcacab4
2 files changed
+22
No files matched your search
@@ -81,6 +81,15 @@ public interface UserManager {
|
||||
return loadUser(uniqueId, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads multiple users from the plugin's storage provider into memory.
|
||||
*
|
||||
* @param uniqueIds the uuids of the users to load
|
||||
* @return a future for an unmodifiable map of loaded users
|
||||
* @throws NullPointerException if the uuid set is null
|
||||
*/
|
||||
@NonNull CompletableFuture<@Unmodifiable Map<UUID, User>> loadUsers(@NonNull Set<@NonNull UUID> uniqueIds);
|
||||
|
||||
/**
|
||||
* Uses the LuckPerms cache to find a uuid for the given username.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user