PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.34k stars 2.2k forks source link

Hide JavaPlugin commands from datapack macros #10997

Open Machine-Maker opened 3 days ago

Machine-Maker commented 3 days ago

Fixes https://github.com/PaperMC/Paper/issues/10994


Creates a second CommandDispatcher that contains all vanilla commands (and namespaced versions) as well as commands registered during bootstrap. One potential issue with this is... that you can't use the internal dispatcher provided to register commands for datapack functions. Not sure if that's resolveable and if we do want to resolve it, might have to take a different, more invasive, approach.


Download the paperclip jar for this pull request: paper-10997.zip