Open IDragonfire opened 11 years ago
My idea: Load every supported Protect class, hold a Protect ArrayList ... Possible over reflection ... http://java.raistudies.com/creating-object-using-reflection-in-java/ 2 and 3 can be done as a loop over the ArrayList ...
1) Those objects are so I don't have to use reflection during runtime. I add the ones I need to an array and then I can loop through them and check things for every plugin.
Also, the ShieldRegion objects need those protect objects to interface with their respective plugins (again, so that we don't need reflection)
2) I've been meaning to rewrite that whole section using enums with each plugins name and package information.
3) I'll use the array of protect objects once I've got the plugin information enums setup, but for now each plotter has to be explicity named.
4) This message is not a duplicate. Bukkit automatically outputs when my plugins onEnable is called; this message is sent once Shield has FINISHED enabling.
https://github.com/Malikk/Shield/pull/4
My current version: https://github.com/IDragonfire/Shield