public function onEnable()
 {
     @mkdir($this->getDataFolder());
     XcelUpdater::chkUpdate($this);
     if (!is_file($this->getDataFolder() . "shops.json")) {
         file_put_contents($this->getDataFolder() . "shops.json", json_encode([]));
     }
     $shops = json_decode(file_get_contents($this->getDataFolder() . "shops.json"), true);
     $translations = yaml_parse(stream_get_contents($this->getResource("translation.yml")));
     foreach ($translations as $name => $data) {
         ToAruPG::addTranslation($name, $data);
     }
     foreach ($shops as $tag => $meta) {
         switch ($meta["type"]) {
             case "SET":
                 $this->shops[$tag] = new SetShop($meta["meta"], $meta["cost"], $meta["desc"]);
                 break;
             case "JOB":
                 $this->shops[$tag] = new JobShop($meta["meta"], $meta["cost"], $meta["desc"]);
                 break;
             case "SKILL":
                 $this->shops[$tag] = new SkillShop($meta["meta"], $meta["cost"], $meta["desc"]);
                 break;
         }
     }
     $this->getServer()->getPluginManager()->registerEvents($this, $this);
     $this->doubleTap = [];
     $this->itemPlaceList = [];
 }