mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +00:00
commit
6c8f189499
@ -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){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user