public function onEnable() { // We don't really need this... //if (!is_dir($this->getDataFolder())) mkdir($this->getDataFolder()); mc::plugin_init($this, $this->getFile()); if (MPMU::apiVersion("1.12.0")) { $this->canUnload = true; $this->tpMgr = null; } else { $this->canUnload = false; $this->tpMgr = new TeleportManager($this); } $this->modules = []; foreach (["MwTp", "MwLs", "MwCreate", "MwGenLst", "MwLoader", "MwLvDat", "MwDefault"] as $mod) { $mod = __NAMESPACE__ . "\\" . $mod; $this->modules[] = new $mod($this); } $this->modules[] = new BasicHelp($this); }