| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
This fixes the issue described on discord where if a plugin registeres commands with the CommandAPI and Paper's Brigadier API, that the commands that were registered with the CommandAPI do not appear in the plugin's help topic (/help PluginName) after running `minecraft:reload`. This reverts commit 35ecee0.
There was a problem hiding this comment.
Just static code analysis right now, haven't re-tested the changes made since I last tried this.
Sorry, something went wrong.
There was a problem hiding this comment.
Redid the tests I mentioned on Discord and everything seems to be working well. Just a few optional comments, but functionality-wise seems good to merge.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #583
Fixes #578
The behaviour for #578 is unexpected, but corect. After this PR, instead of returning the wrong permission, getCommandMap("commandname").getPermission() will return null. This is the correct behaviour which can easily be verified if you follow the initialization chain starting here: https://github.com/PaperMC/Paper/blob/09f1f88f58a03f61092f8636ad780d42db87d8d9/paper-server/src/main/java/io/papermc/paper/command/brigadier/PaperBrigadier.java#L49