mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Added correct PluginIdentifiableCommand
This commit is contained in:
@ -32,6 +32,7 @@ use pocketmine\command\CommandReader;
|
||||
use pocketmine\command\CommandSender;
|
||||
use pocketmine\command\ConsoleCommandSender;
|
||||
use pocketmine\command\PluginCommand;
|
||||
use pocketmine\command\PluginIdentifiableCommand;
|
||||
use pocketmine\command\SimpleCommandMap;
|
||||
use pocketmine\entity\Entity;
|
||||
use pocketmine\event\HandlerList;
|
||||
@ -1014,10 +1015,10 @@ class Server{
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return PluginCommand
|
||||
* @return PluginIdentifiableCommand
|
||||
*/
|
||||
public function getPluginCommand($name){
|
||||
if(($command = $this->commandMap->getCommand($name)) instanceof PluginCommand){
|
||||
if(($command = $this->commandMap->getCommand($name)) instanceof PluginIdentifiableCommand){
|
||||
return $command;
|
||||
}else{
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user