Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong BungeeCord command suggestions #292

Merged
merged 2 commits into from Sep 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bungee/pom.xml
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
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