Fix dynamic command reflection
mdcfe opened this issue ยท 1 comments
Issue by 1Rogue
Friday Jan 31, 2014 at 04:23 GMT
Originally opened as 1Rogue#9
Notes from a plugin page:
Before: (incompatible)
SimplePluginManager spm = (SimplePluginManager)Bukkit.getServer().getPluginManager();
Field scmF = spm.getClass().getDeclaredField("commandMap");
After: (compatible!)
PluginManager pm = Bukkit.getServer().getPluginManager();
Field scmF = pm.getClass().getDeclaredField("commandMap");