Server: remove some useless methods

This commit is contained in:
Dylan K. Taylor 2019-01-17 21:01:31 +00:00
parent bbc8bc4df5
commit 41676cb4d4

View File

@ -1632,7 +1632,7 @@ class Server{
public function enablePlugins(int $type){
foreach($this->pluginManager->getPlugins() as $plugin){
if(!$plugin->isEnabled() and $plugin->getDescription()->getOrder() === $type){
$this->enablePlugin($plugin);
$this->pluginManager->enablePlugin($plugin);
}
}
@ -1642,17 +1642,6 @@ class Server{
}
}
/**
* @param Plugin $plugin
*/
public function enablePlugin(Plugin $plugin){
$this->pluginManager->enablePlugin($plugin);
}
public function disablePlugins(){
$this->pluginManager->disablePlugins();
}
/**
* Executes a command from a CommandSender
*