diff options
author | Mattes D <github@xoft.cz> | 2023-05-09 19:59:15 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2023-05-19 16:25:12 +0200 |
commit | 97c49c6f294a0b7e931be2692c124bd78fc79946 (patch) | |
tree | 872fcdfbfc30ff0ed2e2e444bb965769ea147e60 /src/Protocol/MojangAPI.h | |
parent | cTCPLink: Use the original connection hostname for SNI. (diff) | |
download | cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar.gz cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar.bz2 cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar.lz cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar.xz cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar.zst cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/MojangAPI.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/Protocol/MojangAPI.h b/src/Protocol/MojangAPI.h index f9267fefe..6d550662c 100644 --- a/src/Protocol/MojangAPI.h +++ b/src/Protocol/MojangAPI.h @@ -130,19 +130,14 @@ protected: using cUUIDProfileMap = std::map<cUUID, sProfile>; - /** The server to connect to when converting player names to UUIDs. For example "api.mojang.com". */ - AString m_NameToUUIDServer; - - /** The URL to use for converting player names to UUIDs, without server part. - For example "/profiles/page/1". */ - AString m_NameToUUIDAddress; - - /** The server to connect to when converting UUID to profile. For example "sessionserver.mojang.com". */ - AString m_UUIDToProfileServer; - - /** The URL to use for converting UUID to profile, without the server part. - Will replace %UUID% with the actual UUID. For example "session/minecraft/profile/%UUID%?unsigned=false". */ - AString m_UUIDToProfileAddress; + /** The full URL to check when converting player names to UUIDs. + For example: "https://api.mojang.com/profiles/page/1". */ + AString m_NameToUUIDUrl; + + /** The full URL to use for converting UUID to profile. + %UUID% will get replaced with the actual UUID. + For example "https://sessionserver.mojang.com/session/minecraft/profile/%UUID%?unsigned=false". */ + AString m_UUIDToProfileUrl; /** Cache for the Name-to-UUID lookups. The map key is lowercased PlayerName. Protected by m_CSNameToUUID. */ cProfileMap m_NameToUUID; |