Thutmose / ThutEssentials

Essentials mod for Forge
7 stars 6 forks source link

Option to disable specific commands in config #107

Open terrytzh opened 3 years ago

terrytzh commented 3 years ago

It will be awesome to add more options in config that allow a deeper degree of customability - to enable/disable only certain functions or commands, for example. I am running a couple of utility mods on my 1.16.4 forge server including ThutEssentials, and the /kit and /sethome commands conflict with another utility mod, Ma Essentials, which also has identical commands. Currently, /kit command originates from ThutEssentials while /sethome and /home are from Ma Essentials, which is rather confusing during gameplay.

Thutmose commented 3 years ago

you can disable any of the thutessentials commands via its config, this needs to be done before server boot.

It is the option commandBlacklist = [] in the [misc] section.

The list is a string list of the top level of the command to remove, the folllowing for example will remove /kit and /rtp:

commandBlacklist = ["rtp", "kit"]

This only works for commands added by the mod.