Closed GorgeousOne closed 5 months ago
Thanks for this solution. Yes, paper removed some class, there is an official anouncement about this, and it breaks many plugins using reflection. I met this error during my tests yesterday and will solve it today hopefully
Last push solved this
Starting the plugin on paper/purpur throws an error message:
I think the index out of bound exception originates from how you try to find out the server version in FastReflection.
2 of my plugins had the same issue because on paper 1.20.6
Bukkit.getServer().getClass().getPackage().getName()
somehow returns an empty string. The only solution I found was to useBukkit.getBukkitVersion()
instead. The function can not be used statically so I switched from static final variables to just static variables that all get initialized in the plugin's onEnable().Would it be an option to fix the bug for paper?