public function __construct(Server $server, $name)
{
$this->server = $server;
$this->name = $name;
if (file_exists($this->server->getDataPath() . "players/" . strtolower($this->getName()) . ".dat")) {
$this->namedtag = $this->server->getOfflinePlayerData($this->name);
} else {
$this->namedtag = null;
}
}