Fix wrong BungeeCord command suggestions (#292)

This commit is contained in:
JOO200
2020-09-25 03:59:41 +02:00
committed by GitHub
parent 9452873d13
commit 65428e3cae
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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>
@@ -88,6 +88,11 @@ public class BungeeRootCommand extends Command implements RootCommand, TabExecut
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);