/**
* @param Player $player
* @return null|string
*/
public function getValidUUID(Player $player)
{
$uuid = $player->getUniqueId();
if ($uuid instanceof UUID) {
return $uuid->toString();
}
// Heheheh...
$this->getLogger()->warning("Why did you give me an invalid unique id? *cries* (userName: "******", isConnected: " . $player->isConnected() . ", isOnline: " . $player->isOnline() . ", isValid: " . $player->isValid() . ")");
return null;
}