Class DependencyModule
java.lang.Object
nl.mtvehicles.core.infrastructure.modules.DependencyModule
Module for managing soft-dependencies.
-
Field Summary
Modifier and TypeFieldDescriptionstatic List<SoftDependency>
List of all enabled soft-dependencies.static PlaceholderUtils
PlaceholderAPI's Utils classstatic SkriptUtils
Skripts's Utils classstatic VaultUtils
Vault's Utils classstatic WorldGuardUtils
WorldGuard's Utils class -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
disableDependency(SoftDependency dependency)
Disable a soft-dependency (usually due to a fatal bug or incompatible server version)static boolean
isDependencyEnabled(SoftDependency dependency)
Check whether a soft-dependency is installed and enabled.
-
Field Details
-
loadedDependencies
List of all enabled soft-dependencies. -
worldGuard
WorldGuard's Utils class -
vault
Vault's Utils class -
placeholderAPI
PlaceholderAPI's Utils class -
skript
Skripts's Utils class
-
-
Constructor Details
-
DependencyModule
public DependencyModule()
-
-
Method Details
-
isDependencyEnabled
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
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
-