mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-21 11:46:46 +01:00
Moved FactionsUUID to its own module
This commit is contained in:
parent
1ebfaad641
commit
7e2addcc3d
13
Hook_FactionsUUID/build.gradle
Normal file
13
Hook_FactionsUUID/build.gradle
Normal file
@ -0,0 +1,13 @@
|
||||
group 'Hook_FactionsUUID'
|
||||
|
||||
dependencies {
|
||||
compileOnly "com.drtshock:FactionsUUID:latest"
|
||||
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
|
||||
compileOnly project(":API")
|
||||
compileOnly parent
|
||||
}
|
||||
|
||||
if (project.hasProperty('hook.compile_factionsuuid') &&
|
||||
!Boolean.valueOf(project.findProperty("hook.compile_factionsuuid").toString())) {
|
||||
project.tasks.all { task -> task.enabled = false }
|
||||
}
|
@ -58,7 +58,6 @@ dependencies {
|
||||
compileOnly 'org.spigotmc:v1_16_R3-Tuinity:latest'
|
||||
|
||||
// Plugin Hooks
|
||||
compileOnly "com.drtshock:FactionsUUID:latest"
|
||||
compileOnly "net.prosavage:FactionsX:latest"
|
||||
compileOnly "com.bgsoftware:SuperiorSkyblockAPI:latest"
|
||||
compileOnly "com.songoda:EpicSpawners-6:latest"
|
||||
|
@ -17,4 +17,5 @@ include 'v1_16_R3'
|
||||
include 'v1_17_R1'
|
||||
include 'v1_18_R1'
|
||||
include 'Hook_MassiveFactions'
|
||||
include 'Hook_FactionsUUID'
|
||||
|
||||
|
@ -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_FactionsUUID;
|
||||
import com.bgsoftware.wildloaders.hooks.ClaimsProvider_FactionsX;
|
||||
import com.bgsoftware.wildloaders.hooks.ClaimsProvider_SuperiorSkyblock;
|
||||
import com.bgsoftware.wildloaders.hooks.TickableProvider_EpicSpawners;
|
||||
@ -38,7 +37,8 @@ public final class ProvidersHandler implements ProvidersManager {
|
||||
// Loading the claim providers
|
||||
if (Bukkit.getPluginManager().isPluginEnabled("Factions")) {
|
||||
if (Bukkit.getPluginManager().getPlugin("Factions").getDescription().getAuthors().contains("drtshock")) {
|
||||
addClaimsProvider(new ClaimsProvider_FactionsUUID());
|
||||
Optional<ClaimsProvider> claimsProvider = createInstance("ClaimsProvider_FactionsUUID");
|
||||
claimsProvider.ifPresent(this::addClaimsProvider);
|
||||
}
|
||||
else {
|
||||
Optional<ClaimsProvider> claimsProvider = createInstance("ClaimsProvider_MassiveFactions");
|
||||
|
Loading…
Reference in New Issue
Block a user