NoEncryption icon indicating copy to clipboard operation
NoEncryption copied to clipboard

Use Reflection so Plugin won't break with every new update

Open TheJeterLP opened this issue 2 years ago • 3 comments

Currently you have to change your Compatibility class with every new version and basically copy the whole plugin with every new Minecraft version. This shouldnt be done since the Plugin will break with every MC update. Use Reflection instead to get the classes that you need dynamically.

TheJeterLP avatar Oct 05 '22 17:10 TheJeterLP

This is something that I plan on doing in the near future, I am just working on getting a little more comfortable with learning and using reflection.

V1nc3ntWasTaken avatar Oct 10 '22 18:10 V1nc3ntWasTaken

Does reflection in mc use the spigot translated names or the original obfuscated names?

kralverde avatar Oct 11 '22 14:10 kralverde

Currently the plugin uses remapped, spigot-translated names as maven dependencies to handle and re-form packets, that then get transformed back to minecraft obfuscated mappings once the project is built and compiled.

V1nc3ntWasTaken avatar Oct 11 '22 17:10 V1nc3ntWasTaken

This will be included in 5.0, see #41

doclic avatar Feb 26 '23 19:02 doclic