Skip to content

Commit

Permalink
Fix wrong BungeeCord command suggestions (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joo200 authored Sep 25, 2020
1 parent 9452873 commit 65428e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bungee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.12-SNAPSHOT</version>
<version>1.13-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
5 changes: 5 additions & 0 deletions bungee/src/main/java/co/aikar/commands/BungeeRootCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ public String getPermission() {
return uniquePermission;
}

@Override
public boolean hasPermission(CommandSender sender) {
return hasAnyPermission(manager.getCommandIssuer(sender));
}

@Override
public Iterable<String> onTabComplete(CommandSender commandSender, String[] strings) {
return getTabCompletions(manager.getCommandIssuer(commandSender), getName(), strings);
Expand Down

0 comments on commit 65428e3

Please sign in to comment.