special case for velocity because it's special

This commit is contained in:
2022-02-22 20:26:42 +01:00
parent 3697bc72ce
commit ebc8a823f2
4 changed files with 28 additions and 4 deletions
@@ -77,7 +77,7 @@ public class VelocityMainCommand implements SimpleCommand {
String[] args = invocation.arguments();
return CompletableFuture.supplyAsync(() -> {
List<String> serverCommands = new ArrayList<>();
return CWCommand.commandSuggestions(CommandWhitelistVelocity.getConfigCache(), serverCommands, args, source.hasPermission(CWPermission.RELOAD.permission()), source.hasPermission(CWPermission.ADMIN.permission()));
return CWCommand.commandSuggestions(CommandWhitelistVelocity.getConfigCache(), serverCommands, args, source.hasPermission(CWPermission.RELOAD.permission()), source.hasPermission(CWPermission.ADMIN.permission()), CWCommand.ImplementationType.VELOCITY);
});
}
}