Wiki 9Minecraft Wiki 9Minecraft

Block Subcommands While Allowing the Parent Command

Java EditionPluginGuides 4FAQ 10Related mods 48
DownloadCommand Whitelist Plugin

Get the files on 9Minecraft

Restrict Specific Subcommands

Some commands have subcommands (like /command subcommand). You can block specific subcommands while leaving the parent command accessible.

Steps:

1. Identify the subcommand you want to block (for example, /tp teleport or /give player)

2. Add the subcommand to your whitelist restrictions by specifying the full subcommand path

3. Configure the plugin to block completion and execution of that specific subcommand

4. Players attempting the blocked subcommand will be denied, but can still use other subcommands under the parent command

Test Subcommand Blocking

Have a player with access to the parent command try the blocked subcommand. They should receive a denial message. Verify they can still use other subcommands of the same parent command. This ensures you're only restricting the specific subcommand, not the entire command family.

More guides for this mod