|
@@ -31,6 +31,7 @@ import xyz.spaceio.config.JSONConfig;
|
|
import xyz.spaceio.hooks.HookASkyBlock;
|
|
import xyz.spaceio.hooks.HookASkyBlock;
|
|
import xyz.spaceio.hooks.HookAcidIsland;
|
|
import xyz.spaceio.hooks.HookAcidIsland;
|
|
import xyz.spaceio.hooks.HookBentoBox;
|
|
import xyz.spaceio.hooks.HookBentoBox;
|
|
|
|
+import xyz.spaceio.hooks.HookSkyblockEarth;
|
|
import xyz.spaceio.hooks.SkyblockAPIHook;
|
|
import xyz.spaceio.hooks.SkyblockAPIHook;
|
|
import xyz.spaceio.hooks.HookuSkyBlock;
|
|
import xyz.spaceio.hooks.HookuSkyBlock;
|
|
|
|
|
|
@@ -126,6 +127,9 @@ public class CustomOreGen extends JavaPlugin {
|
|
} else if (Bukkit.getServer().getPluginManager().isPluginEnabled("BentoBox")) {
|
|
} else if (Bukkit.getServer().getPluginManager().isPluginEnabled("BentoBox")) {
|
|
skyblockAPI = new HookBentoBox();
|
|
skyblockAPI = new HookBentoBox();
|
|
sendConsole("&aUsing BentoBox as SkyBlock-Plugin");
|
|
sendConsole("&aUsing BentoBox as SkyBlock-Plugin");
|
|
|
|
+ } else if (Bukkit.getServer().getPluginManager().isPluginEnabled("SkyBlock")) {
|
|
|
|
+ skyblockAPI = new HookSkyblockEarth();
|
|
|
|
+ sendConsole("&aUsing SkyblockEarth as SkyBlock-Plugin");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -170,9 +174,9 @@ public class CustomOreGen extends JavaPlugin {
|
|
} else {
|
|
} else {
|
|
|
|
|
|
int islandLevel = getLevel(p.getUniqueId(), world);
|
|
int islandLevel = getLevel(p.getUniqueId(), world);
|
|
-
|
|
|
|
if (p.isOnline()) {
|
|
if (p.isOnline()) {
|
|
Player realP = p.getPlayer();
|
|
Player realP = p.getPlayer();
|
|
|
|
+
|
|
if (this.getActiveWorlds().contains(realP.getWorld())) {
|
|
if (this.getActiveWorlds().contains(realP.getWorld())) {
|
|
for (GeneratorConfig gc2 : generatorConfigs) {
|
|
for (GeneratorConfig gc2 : generatorConfigs) {
|
|
if (gc2 == null) {
|
|
if (gc2 == null) {
|