mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
Fix wrong BungeeCord command suggestions (#292)
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user