Bladeren bron

fix wrong package

linus 6 jaren geleden
bovenliggende
commit
6a0ae14e54
2 gewijzigde bestanden met toevoegingen van 3 en 9 verwijderingen
  1. 2 8
      src/xyz/spaceio/customoregen/CustomOreGen.java
  2. 1 1
      src/xyz/spaceio/hooks/ASkyBlockHook.java

+ 2 - 8
src/xyz/spaceio/customoregen/CustomOreGen.java

@@ -51,11 +51,6 @@ public class CustomOreGen extends JavaPlugin {
 	private HashMap<UUID, Integer> cachedOregenConfigs = new HashMap<UUID, Integer>();
 	private JSONConfig cachedOregenJsonConfig;
 
-	/*
-	 * The skyblock world name
-	 */
-	private String activeInWorldName = "";
-
 	/*
 	 * API Hook for the corresponding SkyBlock plugin
 	 */
@@ -73,7 +68,6 @@ public class CustomOreGen extends JavaPlugin {
 		pm.registerEvents(new Events(this), this);
 
 		this.loadHook();
-		activeInWorldName = skyblockAPI.getSkyBlockWorldName();
 
 		Bukkit.getPluginCommand("customoregen").setExecutor(new Cmd(this));
 
@@ -115,7 +109,7 @@ public class CustomOreGen extends JavaPlugin {
 	}
 
 	public World getActiveWorld() {
-		return Bukkit.getWorld(activeInWorldName);
+		return Bukkit.getWorld(skyblockAPI.getSkyBlockWorldName());
 	}
 
 	public int getLevel(UUID uuid) {
@@ -219,7 +213,7 @@ public class CustomOreGen extends JavaPlugin {
 
 			if (p.isOnline()) {
 				Player realP = p.getPlayer();
-				if (activeInWorldName.equals(realP.getWorld().getName())) {
+				if (skyblockAPI.getSkyBlockWorldName().equals(realP.getWorld().getName())) {
 					for (GeneratorConfig gc2 : generatorConfigs) {
 						if (gc2 == null) {
 							continue;

+ 1 - 1
src/xyz/spaceio/hooks/ASkyBlockHook.java

@@ -4,7 +4,7 @@ import java.util.UUID;
 
 import org.bukkit.Location;
 
-import com.wasteofplastic.acidisland.ASkyBlockAPI;
+import com.wasteofplastic.askyblock.ASkyBlockAPI;
 
 public class ASkyBlockHook implements SkyblockAPIHook{