hasFullCompatibility

Deprecated

Removal for 6.0.0. Use 'VersionType' and (MAJOR|MINOR|PATCH)_VERSION instead.

Replace with

MAJOR_VERSION

Checks full-compatibility

This function will be removed in 6.0.0. Use MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION for version comparison, and VERSION_TYPE to check the release stage.

// 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.