Merge branch 'master' of github.com:PocketMine/PocketMine-MP

This commit is contained in:
Shoghi Cervantes 2014-06-23 15:26:51 +02:00
commit 4b3addb8a0

View File

@ -41,12 +41,12 @@ class PluginsCommand extends VanillaCommand{
return true;
}
$sender->sendMessage("Plugins " . $this->getPluginList());
$sender->sendMessage("Plugins " . $this->getPluginList($sender));
return true;
}
private function getPluginList(){
private function getPluginList(CommandSender $sender){
$list = "";
foreach(($plugins = $sender->getServer()->getPluginManager()->getPlugins()) as $plugin){
if(strlen($list) > 0){