Skip to content

Fixed unregistering commands only applying to main command alias #29

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

Merged
merged 1 commit into from
Apr 15, 2023

Conversation

4drian3d
Copy link
Contributor

In Velocity there are 2 methods to unregister commands. CommandManager#unregister(String) which unregisters only the command alias in the internal CommandDispatcher and CommandManager#unregister(CommandMeta) which unregisters the entire command, including its aliases

In addition, I added the reference of the plugin that registers the commands to the CommandMeta. In this way, you can check which plugin has register which command by using CommandMeta#getPlugin

@FixedDev
Copy link
Owner

Seems good enough.

@FixedDev FixedDev self-requested a review April 15, 2023 02:28
@FixedDev FixedDev self-assigned this Apr 15, 2023
@FixedDev FixedDev merged commit d390e66 into FixedDev:master Apr 15, 2023
@4drian3d 4drian3d deleted the fix/velocity-command-fixes branch April 15, 2023 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants