Class CoreProtectIntegration

java.lang.Object
dev.cwhead.GravesX.integration.CoreProtectIntegration

public class CoreProtectIntegration extends Object
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.
  • Constructor Details

    • CoreProtectIntegration

      @Deprecated public CoreProtectIntegration(Graves plugin)
      Deprecated.
      Unmaintained greedware plugin. Constructs a new CoreProtectIntegration.
      Parameters:
      plugin - the Graves plugin instance
  • Method Details

    • getCoreProtectAPI

      @Deprecated 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 return null.
      Returns:
      the CoreProtectAPI instance, or null if CoreProtect is unavailable or incompatible