Interface PlayerLoginConnection
- All Superinterfaces:
PlayerConnection, ReadablePlayerCookieConnection
- Since:
- 1.21.7
-
Method Summary
Modifier and TypeMethodDescription@Nullable PlayerProfileGets the authenticated profile for this connection.@Nullable PlayerProfileGets the player profile that this connection is requesting to authenticate as.Methods inherited from interface PlayerConnection
disconnect, getAddress, getClientAddress, getHAProxyAddress, getVirtualHost, isConnected, isTransferredMethods inherited from interface ReadablePlayerCookieConnection
retrieveCookie
-
Method Details
-
getAuthenticatedProfile
@Nullable PlayerProfile getAuthenticatedProfile()Gets the authenticated profile for this connection. This may return null depending on what stage this connection is at.- Returns:
- authenticated profile, or null if not present
- Since:
- 1.21.7
-
getUnsafeProfile
@Nullable PlayerProfile getUnsafeProfile()Gets the player profile that this connection is requesting to authenticate as.- Returns:
- the unsafe unauthenticated profile, or null if not sent
- Since:
- 1.21.7
-