Skip to content

Commit

Permalink
fix Velocity root command not checking for permissions correctly (aik…
Browse files Browse the repository at this point in the history
  • Loading branch information
ham1255 authored May 4, 2024
1 parent 8f9c0d1 commit aff3e6a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,9 @@ public List<String> suggest(Invocation invocation) {
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()));
}
}

0 comments on commit aff3e6a

Please sign in to comment.