Fixed issue where help menu appears even if a player uses a successful portal warp command.

Added else if statement at line 80 checking for single arg instead of 2. This should now only appear if a player both has permission and has not specified a portal to warp to.
This commit is contained in:
silicondev 2020-04-20 19:06:28 +01:00 committed by GitHub
parent dc8a301ff2
commit 2100e5cec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -77,9 +77,10 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
break;
}
}
} else if (args.length == 1 && player.hasPermission("advancedportals.portal.warp") {
sendMenu(player, "Help Menu: Warp",
"\u00A76/" + command + " warp <name> \u00A7a- teleport to warp name");
}
sendMenu(player, "Help Menu: Warp",
"\u00A76/" + command + " warp <name> \u00A7a- teleport to warp name");
break;
case "wand":
case "selector":