For example EconomyAPI. So what I want to do is -> Disable some commands in my plugin IF EconomyAPI is disabled as well. What should I do?
PHP: public function isPluginLoaded(Server $server, string $pluginName){ return ($plugin = $server->getPluginManager()->getPlugin($pluginName)) !== null and $plugin->isEnabled();}
thats handy.... as i (and chosen few) are going to make a big plugin, and we can have that piece of code.