Class Identifiers
java.lang.Object
com.djrapitops.plan.identification.Identifiers
Utility for getting server identifier from different sources.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPlayerUserId(UUID playerUUID)
getPlayerUUID(Request request)
Obtain UUID of the player.@Nullable UUID
getPlayerUUID(String name)
getServerUUID(Request request)
Obtain UUID of the server.getServerUUID(String identifier)
Obtain UUID of the server.getTimestamp(Request request)
-
Field Details
-
dbSystem
-
-
Constructor Details
-
Identifiers
-
-
Method Details
-
getServerUUID
Obtain UUID of the server.- Parameters:
request
- for Request, URIQuery needs a 'server' parameter.- Returns:
- UUID of the server.
- Throws:
BadRequestException
- If server parameter is not defined or the server is not in the database.
-
getServerUUID
Obtain UUID of the server.- Parameters:
identifier
- Identifier (name or uuid string) of the server- Returns:
- UUID of the server.
- Throws:
BadRequestException
- If the server is not in the database.
-
getPlayerUUID
Obtain UUID of the player.- Parameters:
request
- for Request, URIQuery needs a 'player' parameter.- Returns:
- UUID of the player.
- Throws:
BadRequestException
- If player parameter is not defined or the player is not in the database.
-
getPlayerUUID
-
getPlayerUserId
-
getTimestamp
-