mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-09-30 08:07:40 +02:00
Changed return
This commit is contained in:
parent
5c4cbaa127
commit
f42f2d3aea
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user