pub async fn serverside_auth(
username: &str,
public_key: &[u8],
private_key: &[u8; 16],
ip: Option<&str>,
) -> Result<GameProfile, ServerSessionServerError>
Expand description
Ask Mojang’s servers if the player joining is authenticated. Included in the reply is the player’s skin and cape. The IP field is optional and equivalent to enabling ‘prevent-proxy-connections’ in server.properties