Info: Commands: Code: /dc disable <command>: disablecommand.use <command>: The command to disable (e.g. "kill" for /kill) /dc enable <command>: disablecommand.use <command>: The command to enable. Same formatting as the first one. /dc reload: disablecommand.reload Reloads the list of disabled commands.
I suggest using Trey's Command Blocker. You can basically disable any command and enable it in a config, then reload it. https://dev.bukkit.org/projects/treys-command-blocker Basically does everything you want except it's config based. EDIT: Not sure this is the right version, but I use it in my 1.15.2 Factions server. Should work in every version from 1.7.2 -> 1.16.