From bf44bd016d663cb3a7e7542dd6b2ce7a7fb7cc66 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 20 Oct 2019 14:28:53 +0100 Subject: [PATCH] TransferServerCommand: add missing boilerplate permission check --- src/pocketmine/command/defaults/TransferServerCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pocketmine/command/defaults/TransferServerCommand.php b/src/pocketmine/command/defaults/TransferServerCommand.php index ee58217066..c69a8621b5 100644 --- a/src/pocketmine/command/defaults/TransferServerCommand.php +++ b/src/pocketmine/command/defaults/TransferServerCommand.php @@ -42,6 +42,10 @@ class TransferServerCommand extends VanillaCommand{ } public function execute(CommandSender $sender, string $commandLabel, array $args){ + if(!$this->testPermission($sender)){ + return true; + } + if(count($args) < 1){ throw new InvalidCommandSyntaxException(); }elseif(!($sender instanceof Player)){