Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
mojangapi Namespace Reference

The Mojang API holder. More...

Classes

struct  HasJoinedResponse
 Reponse for hasJoined endpoint. More...
 

Functions

HasJoinedResponse hasJoined (const std::string &username, const std::string &serverId, const std::string &ip="")
 Checks whether the player has joined the server.
 

Detailed Description

The Mojang API holder.

Function Documentation

◆ hasJoined()

mojangapi::HasJoinedResponse mojangapi::hasJoined ( const std::string & username,
const std::string & serverId,
const std::string & ip = "" )

Checks whether the player has joined the server.

Only used during authentication scheme.

Parameters
usernamethe username of the player
serverIdthe hash (aka the server id)
ipthe ip of the client if needed
Returns
HasJoinedResponse the response from the API