Moved SuperiorSkyblock to its own module

This commit is contained in:
OmerBenGera 2021-12-25 20:57:17 +02:00
parent 6ece7a428f
commit 16fcc386ff
5 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,13 @@
group 'Hook_SuperiorSkyblock'
dependencies {
compileOnly "com.bgsoftware:SuperiorSkyblockAPI:1.8.2.415"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API")
compileOnly parent
}
if (project.hasProperty('hook.compile_superiorskyblock') &&
!Boolean.valueOf(project.findProperty("hook.compile_superiorskyblock").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 "com.bgsoftware:SuperiorSkyblockAPI:latest"
compileOnly "com.songoda:EpicSpawners-6:latest"
}

View File

@ -19,4 +19,5 @@ include 'v1_18_R1'
include 'Hook_MassiveFactions'
include 'Hook_FactionsUUID'
include 'Hook_FactionsX'
include 'Hook_SuperiorSkyblock'

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_SuperiorSkyblock;
import com.bgsoftware.wildloaders.hooks.TickableProvider_EpicSpawners;
import com.bgsoftware.wildloaders.utils.threads.Executor;
import org.bukkit.Bukkit;
@ -49,7 +48,8 @@ public final class ProvidersHandler implements ProvidersManager {
claimsProvider.ifPresent(this::addClaimsProvider);
}
if (Bukkit.getPluginManager().isPluginEnabled("SuperiorSkyblock2")) {
addClaimsProvider(new ClaimsProvider_SuperiorSkyblock());
Optional<ClaimsProvider> claimsProvider = createInstance("ClaimsProvider_SuperiorSkyblock");
claimsProvider.ifPresent(this::addClaimsProvider);
}
}