Skip to content
YouHaveTrouble edited this page Nov 2, 2021 · 6 revisions

What is CommandWhitelist

This is a simple plugin that lets you control what commands players can use. And it's managed by simple permissions!

It was created because of my frustration of having to use multiple plugins for controlling the commands usage AND tab completions, and when I added some plugin I had to add its commands in multiple configs. No more. This one functions as command blocker and tab complete blocker. At once. One config.

Default group is automatically applied to all players, so all the commands on that list will be usable and will autocomplete.

You can add unlimited amount of whitelists by adding sections in config under "groups" line, just like an example already present in default config.

Usage

Commands in the plugin are grouped, so you can mix and match which commands a player can use. Default group will be applied to everyone automatically.

commands section allows you to specify which commands will be available for the group they're in. Whitelisting a command will automatically whitelist all of its subcommands.

subcommands section functions as a blacklist and allows you to add exceptions for subcommands you do not wish to make available for the group. Keep in mind that as long as player has permission for a group the subcommand will be blocked for them, not adding subcommand to another group does not invalidate that. Consider creating separate group for blacklisting subcommands if you want to dynamically remove subcommands from blacklist.

Clone this wiki locally