mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Merge changes from master
This commit is contained in:
@ -132,7 +132,7 @@ abstract class Command{
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public abstract function execute(CommandSender $sender, $commandLabel, array $args);
|
||||
abstract public function execute(CommandSender $sender, $commandLabel, array $args);
|
||||
|
||||
/**
|
||||
* @return string
|
||||
|
@ -70,7 +70,7 @@ class PluginCommand extends Command implements PluginIdentifiableCommand{
|
||||
* @param CommandExecutor $executor
|
||||
*/
|
||||
public function setExecutor(CommandExecutor $executor){
|
||||
$this->executor = ($executor != null) ? $executor : $this->owningPlugin;
|
||||
$this->executor = $executor;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user