public function __construct(DynamicHub $hub) { $this->hub = $hub; $this->dir = $hub->getDataFolder() . "data/json/"; $this->playerDir = $this->dir . "players/"; $this->nextIdFile = $this->dir . "nextId.txt"; $this->nextId = is_file($this->dir) ? Binary::readLong(file_get_contents($this->dir . $this->nextIdFile)) : 0; }