diff --git a/src/EssentialsPE/Commands/Warp/Warp.php b/src/EssentialsPE/Commands/Warp/Warp.php index 64595ed8..f8835bcf 100644 --- a/src/EssentialsPE/Commands/Warp/Warp.php +++ b/src/EssentialsPE/Commands/Warp/Warp.php @@ -49,7 +49,7 @@ public function execute(CommandSender $sender, $alias, array $args){ $sender->sendMessage(TextFormat::RED . "[Error] Player not found"); return false; } - if(!$sender->hasPermission("essentials.warps.*") && !$sender->hasPermission("essentials.warps." . $args[0])){ + if(!$sender->hasPermission("essentials.warps.*") || !$sender->hasPermission("essentials.warps." . $args[0])){ $sender->sendMessage(TextFormat::RED . "[Error] You can't teleport another to that warp"); return false; }