Creative mode saved hotbar exploit

I found out players can give themselves illegal items by going into their own world and creating a hotbar profile. They can give themselves items such as the ender dragon spawn egg. How do I fix this?
Solution
https://github.com/Tig3r98/PanillaX
or
https://github.com/Lumine1909/Panilla_Continue

could both solve the issue of items with custom data, but idk about the ender dragon egg item
GitHub
Prevent abusive NBT and crash packets on a Minecraft server - Tig3r98/PanillaX
GitHub
Prevent abusive NBT and crash packets on a Minecraft server - Lumine1909/Panilla_Continue
Was this page helpful?