Package io.papermc.paper.connection
Interface PlayerLoginConnection
- All Superinterfaces:
PlayerConnection
,ReadablePlayerCookieConnection
-
Method Summary
Modifier and TypeMethodDescriptionGets the authenticated profile for this connection.Gets the player profile that this connection is requesting to authenticate as.Methods inherited from interface io.papermc.paper.connection.PlayerConnection
disconnect, getAddress, getClientAddress, getHAProxyAddress, getVirtualHost, isTransferred
Methods inherited from interface io.papermc.paper.connection.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
-
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
-