public function onEnable() { $this->patternStore = new PatternStore(); $this->patternStore->loadClasses($this->getFile() . "src/" . str_replace("\\", "/", __NAMESPACE__) . "/pattern"); $this->chestDataStore = new FlatFileStore($this); $this->chestDataStore->load(); $this->getServer()->getCommandMap()->register("chestrefill", new ChestCommand($this)); }