Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature to unregister all commands that conflict #400

Open
soshimee opened this issue Jan 10, 2023 · 2 comments
Open

Feature to unregister all commands that conflict #400

soshimee opened this issue Jan 10, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@soshimee
Copy link

Description

It would be nice to have something to unregister all the commands that conflict, or even unregister a specific command. I think this will be a good addition because CommandAPI commands tend to have lower priority and the other plugins which aren't as important (such as Essentials and WorldEdit) tend to overwrite them. It's definitely very annoying to type minecraft: every time this happens.

Expected code

No response

Extra details

I was making a plugin with /info and then WorldEdit decided to take priority. It wasn't a good experience.

@soshimee soshimee added the enhancement New feature or request label Jan 10, 2023
@soshimee soshimee reopened this Jan 10, 2023
@JorelAli
Copy link
Owner

JorelAli commented Jan 10, 2023

For converted commands (e.g. using the CommandAPI plugin command converter for Essentials/WorldEdit), the CommandAPI still has to be able to access the underlying command in order to run it. If we unregister the underlying command, then the CommandAPI won't be able to run it!

For everything else, this seems like a very nuclear option. What would be ideal is to try and get namespaces working, so the commands are registered via your plugin namespace instead of minecraft:, and command resolving comes down to however Bukkit decides to handle that

@soshimee
Copy link
Author

Mmmm yeah I would love to see it not in just generic minecraft: namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants