mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-01-28 02:52:50 +01:00
Changed return
This commit is contained in:
parent
5c4cbaa127
commit
f42f2d3aea
@ -92,7 +92,7 @@ public class DestinationCommand implements CommandExecutor, TabCompleter {
|
||||
case "warp":
|
||||
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] + "!");
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
if(args.length >= 2){
|
||||
Destination.warp((Player) sender, args[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user