Is it possible that I can move , read or delete files with pocketmine ? I want to navigate to the plugins folder and look what plugins are installed.
This will give you the path to a plugin's data folder (where the config is stored). PHP: $this->getServer()->getPluginManager()->getPlugin("plugin name")->getDataFolder();
To answer my own question: $path = $this->getServer()->getDataPath() . "plugins/"; $allFiles = scandir($path); for ($i = 0; $i < sizeof($allFiles); $i++) { if($this->endsWith($allFiles[$i], ".phar")) { $player->sendMessage($allFiles[$i]); } }