mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Use CommandExecutor by default on plugins :P
This commit is contained in:
@ -39,11 +39,7 @@ class PluginCommand extends Command implements PluginIdentifiableCommand{
|
||||
public function __construct($name, Plugin $owner){
|
||||
parent::__construct($name);
|
||||
$this->owningPlugin = $owner;
|
||||
if(!($owner instanceof CommandExecutor)){
|
||||
trigger_error("Plugin does not implement CommandExecutor", E_USER_WARNING);
|
||||
}else{
|
||||
$this->executor = $owner;
|
||||
}
|
||||
$this->executor = $owner;
|
||||
$this->usageMessage = "";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user