Fixed circular plugin loading errors on Paper servers

This commit is contained in:
OmerBenGera 2023-10-05 15:31:33 +03:00
parent 6ba614dab1
commit eddaf54c99
3 changed files with 13 additions and 3 deletions

View File

@ -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"

View File

@ -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();

View File

@ -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.