hasFullCompatibility

Checks full-compatibility

// Check Example in your plugin
@Override
fun onEnable() {
if (!CustomCrafterAPI.hasFullCompatibility("5.0.15")) {
println("This plugin has not full-compatibility with loaded CustomCrafter.")
println("Loaded Version: ${CustomCrafterAPI.API_VERSION}")
Bukkit.pluginManager.disablePlugin(this)
return
}
}

Since

5.0.13

Parameters

version

CustomCrafter version string that is used by your plugin.