diff --git a/build.gradle b/build.gradle index 41b09c2..388d4d0 100644 --- a/build.gradle +++ b/build.gradle @@ -56,6 +56,7 @@ dependencies { implementation 'com.bgsoftware.common.reflection:ReflectionUtils:latest' implementation 'com.bgsoftware.common.config:CommentedConfiguration:1.0.3' + implementation 'com.bgsoftware.common.dependencies:DependenciesManager:b1' // Spigot jars compileOnly "org.spigotmc:v1_8_R3:latest" diff --git a/src/main/java/com/bgsoftware/wildloaders/WildLoadersPlugin.java b/src/main/java/com/bgsoftware/wildloaders/WildLoadersPlugin.java index 8d94f29..266c40d 100644 --- a/src/main/java/com/bgsoftware/wildloaders/WildLoadersPlugin.java +++ b/src/main/java/com/bgsoftware/wildloaders/WildLoadersPlugin.java @@ -1,5 +1,6 @@ package com.bgsoftware.wildloaders; +import com.bgsoftware.common.dependencies.DependenciesManager; import com.bgsoftware.common.reflection.ReflectMethod; import com.bgsoftware.wildloaders.api.WildLoaders; import com.bgsoftware.wildloaders.api.WildLoadersAPI; @@ -42,6 +43,9 @@ public final class WildLoadersPlugin extends JavaPlugin implements WildLoaders { @Override public void onLoad() { plugin = this; + + DependenciesManager.inject(this); + new Metrics(this); shouldEnable = loadNMSAdapter(); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index fdd29ac..3f98d89 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,19 +1,24 @@ name: WildLoaders version: ${project.version} -api-version: 1.13 main: com.bgsoftware.wildloaders.WildLoadersPlugin + description: Highly configurable and optimized chunk-loaders plugin. website: https://bg-software.com/ -authors: [Ome_R] -softdepend: +api-version: 1.13 +author: Ome_R + +# Custom section used by DependenciesManager, which replaces softdepend. +class-depends: - EpicSpawners - Factions - FactionsX - Lands - SuperiorSkyblock2 + commands: loader: description: Main command for wild loaders. + permissions: wildloaders.*: description: Gives access to all the commands.