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

Make the CommandAPI complain less about command registered in the plugin.yml #391

Merged
merged 4 commits into from Jan 1, 2023

Conversation

DerEchtePilz
Copy link
Collaborator

@DerEchtePilz DerEchtePilz commented Jan 1, 2023

The title is not great, I know and it can be misunderstood!

I once experienced this while using the CommandAPI:

In my plugin, I register a command permission. LuckPerms also registers a command permission.
The CommandAPI does this:
[01:15:12 WARN]: [CommandAPI] Plugin command /permission is registered by Bukkit (LuckPerms). Did you forget to remove this from your plugin.yml file?

Here is what the PR does:

This PR makes it so that the CommandAPI doesn't complain about plugin commands registered in a plugin.yml if the plugin.yml doesn't belong to the plugin calling the CommandAPI.

@JorelAli JorelAli merged commit 9a2315e into JorelAli:dev/dev Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants