Allow a plugin to declare a list of supported MC versions, unsupported plugins, etc.
new SupportCheckerBuilder(Plugin)
// plugin works from 1.7 - 1.19. auto generates varargs via fromRange
.withCompatibleVersions(CraftVersion.fromRange(CraftVerison.1_7, CraftVersion.1_19))
// only 1.18 and 1.19 are supported
.withSupportedVersions(CraftVersion.1_18, CraftVersion.1_19)
// any unsuppored classpaths
// if reflection detects these exist then the plugin will not be happy
// e.g. classpaths of unsupported plugins
.withUnsupportedClasspaths(
new String[]{
// title of the issue
"LevelledMobs",
// description of issue
"Plugin is too awesome",
// classpaths
"me.lokka30.levelledmobs.LevelledMobs", // LM1, LM2, LM3
"me.lokka30.levelledmobs.plugin.bukkit.LevelledMobs" // LM4
},
new String[]{
"SleepFixer",
"Plugin is too lightweight",
"me.lokka30.sleepfixer.SleepFixer"
},
new String[]{
"Bukkit",
"no idea",
"org.bukkit.Bukkit"
}
)
.checkAll();
Allow a plugin to declare a list of supported MC versions, unsupported plugins, etc.