mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
fix Velocity root command not checking for permissions correctly (#406)
This commit is contained in:
committed by
GitHub
parent
8f9c0d141b
commit
aff3e6a8c7
@@ -94,4 +94,9 @@ public class VelocityRootCommand implements SimpleCommand, RootCommand {
|
||||
public CompletableFuture<List<String>> suggestAsync(Invocation invocation) {
|
||||
return CompletableFuture.completedFuture(getTabCompletions(manager.getCommandIssuer(invocation.source()), getCommandName(), invocation.arguments()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPermission(Invocation invocation) {
|
||||
return hasAnyPermission(this.manager.getCommandIssuer(invocation.source()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user