Moved FactionsX to its own module

This commit is contained in:
OmerBenGera 2021-12-25 20:55:38 +02:00
parent 7e2addcc3d
commit 6ece7a428f
5 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,13 @@
group 'Hook_FactionsX'
dependencies {
compileOnly "net.prosavage:FactionsX:latest"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API")
compileOnly parent
}
if (project.hasProperty('hook.compile_factionsx') &&
!Boolean.valueOf(project.findProperty("hook.compile_factionsx").toString())) {
project.tasks.all { task -> task.enabled = false }
}

View File

@ -58,7 +58,6 @@ dependencies {
compileOnly 'org.spigotmc:v1_16_R3-Tuinity:latest'
// Plugin Hooks
compileOnly "net.prosavage:FactionsX:latest"
compileOnly "com.bgsoftware:SuperiorSkyblockAPI:latest"
compileOnly "com.songoda:EpicSpawners-6:latest"
}

View File

@ -18,4 +18,5 @@ include 'v1_17_R1'
include 'v1_18_R1'
include 'Hook_MassiveFactions'
include 'Hook_FactionsUUID'
include 'Hook_FactionsX'

View File

@ -4,7 +4,6 @@ import com.bgsoftware.wildloaders.WildLoadersPlugin;
import com.bgsoftware.wildloaders.api.hooks.ClaimsProvider;
import com.bgsoftware.wildloaders.api.hooks.TickableProvider;
import com.bgsoftware.wildloaders.api.managers.ProvidersManager;
import com.bgsoftware.wildloaders.hooks.ClaimsProvider_FactionsX;
import com.bgsoftware.wildloaders.hooks.ClaimsProvider_SuperiorSkyblock;
import com.bgsoftware.wildloaders.hooks.TickableProvider_EpicSpawners;
import com.bgsoftware.wildloaders.utils.threads.Executor;
@ -46,7 +45,8 @@ public final class ProvidersHandler implements ProvidersManager {
}
}
if (Bukkit.getPluginManager().isPluginEnabled("FactionsX")) {
addClaimsProvider(new ClaimsProvider_FactionsX());
Optional<ClaimsProvider> claimsProvider = createInstance("ClaimsProvider_FactionsX");
claimsProvider.ifPresent(this::addClaimsProvider);
}
if (Bukkit.getPluginManager().isPluginEnabled("SuperiorSkyblock2")) {
addClaimsProvider(new ClaimsProvider_SuperiorSkyblock());