Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
A easy-to-use PHP class for accessing official Mojang's API
Remove deprecated message (regarding each() function) since PHP 7.2
Update if you have any issue with players head, else this isn't required.
While fetching skin, if user exists but hasn't a skin, it returns null.
If an error happens, it still returns false.
Also fix method MojangAPI::isAlex($uuid)
Query or ping a Minecraft server to retrieve its players count
- Query: MojangAPI::query($address, $port)
- Ping: MojangAPI::.ping($address, $port)
Authenticate a Minecraft/Mojang account and retrieve his UUID and username
- Usage: MojangAPI::authenticate($id, $password)
- Warning After a few fails, Mojang server will deny all requests !