From ae6d71422d978c50898c0ca3edea5707bb02c1fb Mon Sep 17 00:00:00 2001 From: HiToLaKhanh <63938720+HiToLaKhanh@users.noreply.github.com> Date: Thu, 21 May 2020 20:09:44 +0700 Subject: [PATCH] fix an error --- src/icontrolu/iControlU.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/icontrolu/iControlU.php b/src/icontrolu/iControlU.php index b964c65..e6b5f34 100644 --- a/src/icontrolu/iControlU.php +++ b/src/icontrolu/iControlU.php @@ -88,11 +88,11 @@ public function onCommand(CommandSender $sender, Command $cmd, string $label, ar break; } } - } - else{ + }else{ $sender->sendMessage("Please run command in game."); return true; } + return true; } public function onMove(PlayerMoveEvent $event){ if($this->isBarred($event->getPlayer())){