mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-12-23 16:58:35 +01:00
Moved FactionsX to its own module
This commit is contained in:
parent
7e2addcc3d
commit
6ece7a428f
13
Hook_FactionsX/build.gradle
Normal file
13
Hook_FactionsX/build.gradle
Normal 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 }
|
||||
}
|
@ -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"
|
||||
}
|
||||
|
@ -18,4 +18,5 @@ include 'v1_17_R1'
|
||||
include 'v1_18_R1'
|
||||
include 'Hook_MassiveFactions'
|
||||
include 'Hook_FactionsUUID'
|
||||
include 'Hook_FactionsX'
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user