@return An instance of RedLib if it is a plugin dependency, or your plugin if RedLib is shaded
()
| 50 | * @return An instance of RedLib if it is a plugin dependency, or your plugin if RedLib is shaded |
| 51 | */ |
| 52 | public static Plugin getInstance() { |
| 53 | return redLib != null ? redLib : JavaPlugin.getProvidingPlugin(RedLib.class); |
| 54 | } |
| 55 | |
| 56 | private static int getMidVersion() { |
| 57 | Pattern pattern = Pattern.compile("1\\.([0-9]+)"); |
no outgoing calls
no test coverage detected