Added correct PluginIdentifiableCommand

This commit is contained in:
Shoghi Cervantes
2014-04-03 13:08:11 +02:00
parent 27fcf0286e
commit 04917ecd5a
5 changed files with 46 additions and 10 deletions

View File

@ -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;