mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 05:40:01 +00:00
TransferServerCommand: add missing boilerplate permission check
This commit is contained in:
parent
04e4a36653
commit
bf44bd016d
@ -42,6 +42,10 @@ class TransferServerCommand extends VanillaCommand{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function execute(CommandSender $sender, string $commandLabel, array $args){
|
public function execute(CommandSender $sender, string $commandLabel, array $args){
|
||||||
|
if(!$this->testPermission($sender)){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if(count($args) < 1){
|
if(count($args) < 1){
|
||||||
throw new InvalidCommandSyntaxException();
|
throw new InvalidCommandSyntaxException();
|
||||||
}elseif(!($sender instanceof Player)){
|
}elseif(!($sender instanceof Player)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user