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; return true;
} }
$sender->sendMessage("Plugins " . $this->getPluginList()); $sender->sendMessage("Plugins " . $this->getPluginList($sender));
return true; return true;
} }
private function getPluginList(){ private function getPluginList(CommandSender $sender){
$list = ""; $list = "";
foreach(($plugins = $sender->getServer()->getPluginManager()->getPlugins()) as $plugin){ foreach(($plugins = $sender->getServer()->getPluginManager()->getPlugins()) as $plugin){
if(strlen($list) > 0){ if(strlen($list) > 0){
@ -58,4 +58,4 @@ class PluginsCommand extends VanillaCommand{
return "(" . count($plugins) . "): $list"; return "(" . count($plugins) . "): $list";
} }
} }