-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Does your API still work? Can't get it to do so.
This is my code:
<?php
// Require API
require 'mojangApi.php';
// Get UUID from username
$uuid = MojangAPI::getUuid('MTC');
echo 'UUID: <b>' . $uuid . '</b><br>';
// Get his name history
$history = MojangAPI::getNameHistory($uuid);
echo 'First username: <b>'.reset($history)['name'].'</b><br>';
// Print player's head
$img = '<img src="' . MojangAPI::embedImage(MojangAPI::getPlayerHead($uuid)) . '" alt="Head of MTC">';
echo 'Skin:<br>' . $img . '<br>';
?>This is how the website looks like when it's loaded:

I read that warning but when I do:
if(MojangAPI::getUuid('Player')it always returns false.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels