From 2e50fbbda49986cee157856af4712712ef46e4e5 Mon Sep 17 00:00:00 2001 From: PEMapModder Date: Mon, 23 Jun 2014 19:27:27 +0800 Subject: [PATCH] Fix /plugins crash --- src/pocketmine/command/defaults/PluginsCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/command/defaults/PluginsCommand.php b/src/pocketmine/command/defaults/PluginsCommand.php index ead49ecaa..5dc25ee51 100644 --- a/src/pocketmine/command/defaults/PluginsCommand.php +++ b/src/pocketmine/command/defaults/PluginsCommand.php @@ -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){ @@ -58,4 +58,4 @@ class PluginsCommand extends VanillaCommand{ return "(" . count($plugins) . "): $list"; } -} \ No newline at end of file +}