Class UserIdentifierQueries
java.lang.Object
com.djrapitops.plan.storage.database.queries.objects.UserIdentifierQueries
Queries for fetching different user identifiers in the database.
-
Method Summary
Modifier and TypeMethodDescriptionQuery database for a Map for all UUIDs and Player names.Query database for all player UUIDs stored in the Plan database.fetchMatchingPlayerNames
(String searchFor) fetchPlayerNameOf
(UUID playerUUID) Query database for a Player name matching a specific player's UUID.fetchPlayerUUIDOf
(String playerName) Query database for a Player UUID matching a specific player's name.fetchPlayerUUIDsOfServer
(ServerUUID serverUUID) Query database for all player UUIDs that have joined a server.fetchUserId
(UUID playerUUID)
-
Method Details
-
fetchAllPlayerUUIDs
Query database for all player UUIDs stored in the Plan database.- Returns:
- Set of UUIDs.
-
fetchPlayerUUIDsOfServer
Query database for all player UUIDs that have joined a server.- Parameters:
serverUUID
- UUID of the Plan server.- Returns:
- Set of UUIDs.
-
fetchAllPlayerNames
Query database for a Map for all UUIDs and Player names.- Returns:
- Map: Player UUID - Player name
-
fetchPlayerUUIDOf
Query database for a Player UUID matching a specific player's name.- Parameters:
playerName
- Name of the player, case does not matter.- Returns:
- Optional: UUID if found, empty if not.
-
fetchPlayerNameOf
Query database for a Player name matching a specific player's UUID.- Parameters:
playerUUID
- UUID of the Player- Returns:
- Optional: name if found, empty if not.
-
fetchMatchingPlayerNames
-
fetchAllUserIds
-
fetchUserId
-