Skip to content

Allow people to completely disable a command #3809

@jvdoorn

Description

@jvdoorn

Feature request

Feature description:
Currently disabling an essentials command only disables the execution of the command. My suggestion is to change this (or if desired create a new config option) that completely disables the command (aka don't register it). This allows native commands, normally overwritten by Essentials, to support command completion again.

An example of how this currently can be done is by removing the command from plugin.yml in the Essentials source. My feature could possibly be implemented by ignoring the entry in plugin.yml if it has been disabled in the config. I'd be willing to implement this myself if someone points me in the right direction.

How the feature is useful:
The advantage of this feature is that it gives users more fine-grained control over command execution and completion. The advantage of enabling this feature through the config is that people don't have to build Essentials themselves or have to rebuild it when they want to disable/enable a command. If it is implemented using a new config variable then it won't affect current installations, thus users who are used to the old disabling behaviour won't experience any issues.

Related issues:
This is a list of issues that are somewhat related to this issue. They can serve as an example for additional use-cases and I furthermore listed them for easy reference.

#2708
#1458
#2297

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions