Skip to content

Commit

Permalink
fix: admin commands not showing up in tabcomplete when user has permi…
Browse files Browse the repository at this point in the history
…ssion
  • Loading branch information
Thatsmusic99 committed Jun 6, 2023
1 parent 25ddd68 commit caa66ef
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -52,7 +52,7 @@ public List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Comman
List<String> availableCommands = new ArrayList<>();
List<String> chosenCommands = new ArrayList<>();
for (String command : CommandManager.subcommands.keySet()) {
if (sender.hasPermission("at.member.core." + command)) {
if (sender.hasPermission("at.member.core." + command) || sender.hasPermission("at.admin.core." + command)) {
availableCommands.add(command);
}
}
Expand Down

0 comments on commit caa66ef

Please sign in to comment.