Updated Usage (markdown)

YouHaveTrouble
2022-12-15 18:50:45 +01:00
parent 3b6ba2ee13
commit 71b0b3f072
+9
@@ -7,3 +7,12 @@ Provided command **and all its arguments** (subcommands) will be whitelisted alo
## Blacklisting subcommands ## Blacklisting subcommands
To blacklist a subcommand, all you need to do is add it to the subcommands section in the group of your choice. Only properly formatted subcommands will be blacklisted, so `help` will NOT work, but `help about` WILL blacklist the `about` subcommand from `help` command. To blacklist a subcommand, all you need to do is add it to the subcommands section in the group of your choice. Only properly formatted subcommands will be blacklisted, so `help` will NOT work, but `help about` WILL blacklist the `about` subcommand from `help` command.
## Applying CommandWhitelist group to a permission group
Settings for commands and subcommands in `default` group will be automatically applied and do not require permission.
**Permission group and CommandWhitelist group are NOT the same thing.**
To assign CommandWhitelist group to a permission group, you need to grant `commandwhitelist.group.<group_name>`, where you substitute `<group_name>` with the name of the CommandWhitelist group.