fix Velocity root command not checking for permissions correctly (#406)

This commit is contained in:
mohammed Alteneiji
2024-05-04 22:35:52 +04:00
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()));
}
}