Class DependencyModule

java.lang.Object
nl.mtvehicles.core.infrastructure.modules.DependencyModule

public class DependencyModule extends Object
Module for managing soft-dependencies.
  • Field Details

    • loadedDependencies

      public static List<SoftDependency> loadedDependencies
      List of all enabled soft-dependencies.
    • worldGuard

      public static WorldGuardUtils worldGuard
      WorldGuard's Utils class
    • vault

      public static VaultUtils vault
      Vault's Utils class
    • placeholderAPI

      public static PlaceholderUtils placeholderAPI
      PlaceholderAPI's Utils class
    • skript

      public static SkriptUtils skript
      Skripts's Utils class
  • Constructor Details

    • DependencyModule

      public DependencyModule()
  • Method Details

    • isDependencyEnabled

      public static boolean isDependencyEnabled(SoftDependency dependency)
      Check whether a soft-dependency is installed and enabled.
      Parameters:
      dependency - Soft-dependency supported by the plugin
      Returns:
      True if the soft-dependency is enabled.
      See Also:
      SoftDependency
    • disableDependency

      public static void disableDependency(SoftDependency dependency)
      Disable a soft-dependency (usually due to a fatal bug or incompatible server version)
      Parameters:
      dependency - Soft-dependency supported by the plugin
      See Also:
      SoftDependency