-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
Fix duplicate extension's help command permission registration on Paper #4079
Fix duplicate extension's help command permission registration on Paper #4079
Conversation
Shouldn't the extensions's ID be a part of its help command permission? I don't understand why the permission was chosen to be the same or every extension help instance. |
It could be, but what's the point restricting some extensions help command? Either you want to see all command listings for all extensions, or for none :p |
Same reason as not having every single extensions that aren't targeted towards the base player don't need to be exposed in that regard |
OK, valid. I'll change the permissions to include the extension id - i personally would leave in the duplicate permission check though in case two extensions try to register a command with the same permission. |
…er.command.exthelp.id" permission
Fixes #4078 by checking if a permission already exists before attempting to add it.
Caused by Geyser registering multiple
/<extensionid> help
commands under the same permission.This fix would just avoid re-registering these permissions.
To help debugging issues, the duplicated permissions are logged in debug mode.
Additionally, i removed the check for floodgate-bukkit, which was added two years ago.