Add API bulk user lookup method (#4285)

This commit is contained in:
Warrior authored and GitHub committed 2026-07-23 20:15:01 +01:00
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.
*