Merge changes from master

This commit is contained in:
Dylan K. Taylor
2017-04-21 22:48:18 +01:00
23 changed files with 79 additions and 43 deletions

View File

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

View File

@ -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;
}
/**