mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Merge branch 'master' of github.com:PocketMine/PocketMine-MP
This commit is contained in:
commit
4b3addb8a0
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user