Changed return

This commit is contained in:
sekwah 2018-03-07 17:42:25 +00:00
parent 5c4cbaa127
commit f42f2d3aea

View File

@ -92,7 +92,7 @@ public class DestinationCommand implements CommandExecutor, TabCompleter {
case "warp": case "warp":
if (!(sender.hasPermission("advancedportals.warp.*") || sender.hasPermission("advancedportals.warp." + args[1]))) { if (!(sender.hasPermission("advancedportals.warp.*") || sender.hasPermission("advancedportals.warp." + args[1]))) {
sender.sendMessage(PluginMessages.customPrefixFail + " You don't have permission to warp to " + args[1] + "!"); sender.sendMessage(PluginMessages.customPrefixFail + " You don't have permission to warp to " + args[1] + "!");
return false; return true;
} }
if(args.length >= 2){ if(args.length >= 2){
Destination.warp((Player) sender, args[1]); Destination.warp((Player) sender, args[1]);