You might have to customize the actual command, as in customize the code for the command. E.g: For the kick command you may need to edit the actual code that handles the kick command.
If you go to your module, there is a way - I’ll have to look. I believe it’s something with the player permission check, if you return after the command is denied it should work.