Package com.ranull.graves.integration
Class CoreProtectIntegration
java.lang.Object
com.ranull.graves.integration.CoreProtectIntegration
Deprecated.
Unmaintained greedware plugin.
Handles integration with the CoreProtect plugin.
This class provides methods to obtain and interact with the CoreProtect API.
It checks the CoreProtect plugin's availability and API version to ensure compatibility.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate net.coreprotect.CoreProtectAPIDeprecated.private final GravesDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionCoreProtectIntegration(Graves plugin) Deprecated.Unmaintained greedware plugin. -
Method Summary
Modifier and TypeMethodDescriptionnet.coreprotect.CoreProtectAPIDeprecated.Unmaintained greedware plugin.
-
Field Details
-
plugin
Deprecated. -
coreProtectAPI
private net.coreprotect.CoreProtectAPI coreProtectAPIDeprecated.
-
-
Constructor Details
-
CoreProtectIntegration
Deprecated.Unmaintained greedware plugin. Constructs a newCoreProtectIntegration.- Parameters:
plugin- theGravesplugin instance
-
-
Method Details
-
getCoreProtectAPI
public net.coreprotect.CoreProtectAPI getCoreProtectAPI()Deprecated.Unmaintained greedware plugin. Retrieves the CoreProtect API instance. If the API instance is not already cached, it attempts to obtain it by checking if the CoreProtect plugin is available, enabled, and if the API version is at least 9. If the CoreProtect plugin is not available or the API version is insufficient, this method will log an error and returnnull.- Returns:
- the
CoreProtectAPIinstance, ornullif CoreProtect is unavailable or incompatible
-