JorelAli / CommandAPI

A Bukkit/Spigot API for the command UI introduced in Minecraft 1.13
https://commandapi.jorel.dev
MIT License
504 stars 60 forks source link

Hotfix CommandAPI throwing errors because of Paper's Brigadier command API #555

Closed DerEchtePilz closed 1 month ago

DerEchtePilz commented 1 month ago

Some of this is not pretty but doing this the VarHandle-less way also got rid of the exception in the console which I didn't seem to do with VarHandles.

Nevertheless, this should make it possible to at least register commands using Paper 1.20.6 build 65 and onwards.

I plan to handle all this properly in #517

Sytm commented 1 month ago

I gave this PR a quick spin with my plugin and it seems to work without any issues