Bläddra i källkod

added content from old built jar, added src folder

mastercake10 6 år sedan
förälder
incheckning
463cf9a9b5

+ 0 - 99
de/Linus122/customoregen/Events.java

@@ -1,99 +0,0 @@
-package de.Linus122.customoregen;
-
-import java.util.AbstractMap;
-import java.util.Map.Entry;
-import java.util.Random;
-import org.bukkit.Material;
-import org.bukkit.block.Block;
-import org.bukkit.block.BlockFace;
-import org.bukkit.entity.Player;
-import org.bukkit.event.EventHandler;
-import org.bukkit.event.Listener;
-import org.bukkit.event.block.BlockFromToEvent;
-
-
-public class Events implements Listener {
-	@SuppressWarnings({ "deprecation" })
-	@EventHandler
-	public void onFromTo(BlockFromToEvent event){
-		//System.out.println("From: " + event.getBlock().getType().name());
-		//System.out.println("To: " + event.getToBlock().getType().name());
-		//System.out.println("Face: " + event.getFace().name());
-		
-	    int id = event.getBlock().getTypeId();
-	    if ((id >= 8) && (id <= 11)){
-	    	Block b = event.getToBlock();
-	    	Entry<Boolean, Boolean> e = generatesCobble(id, b);
-	    	boolean generatesCobble = e.getKey();
-	    	boolean stoneGen = e.getValue();
-	    	
-	    	int toid = b.getTypeId();
-	    	if ((toid == 0) && (generatesCobble)){
-	    		GeneratorConfig gc = null;
-
-				Player p = Main.getOwner(b.getLocation());
-				if(p == null){
-					gc = Main.generatorConfigs.get(0);	
-				}else{
-					int islandLevel = Main.getLevel(p);
-
-					if(Main.activeInWorld.getName().equals(b.getWorld().getName())){
-							for(GeneratorConfig gc2 : Main.generatorConfigs){
-								if(gc2 == null){
-									continue;
-								}
-								
-									if(p.hasPermission(gc2.permission) &&
-											islandLevel >= 
-											gc2.unlock_islandLevel ){
-										//Weiter
-										gc = gc2;
-									}	
-							
-							}	
-					}
-				}
-				if(gc == null) return;
-				if(getObject(gc) == null) return;
-				GeneratorItem winning = getObject(gc);
-				if(Material.getMaterial(winning.name) == null) return;
-				//b.setType(Material.getMaterial(winning));	
-				if (Material.getMaterial(winning.name).equals(Material.COBBLESTONE) && winning.damage == 0 && stoneGen) {
-					return;
-				}
-				b.setTypeIdAndData(Material.getMaterial(winning.name).getId() , winning.damage, true);
-	    	}
-		}
-	}
-	public GeneratorItem getObject(GeneratorConfig gc){
-		
-		Random random = new Random();
-		double d = random.nextDouble() * 100;
-		for(GeneratorItem key : gc.itemList){
-			if ((d -= key.chance) < 0) return key;
-		}
-		return new GeneratorItem("COBBLESTONE", (byte) 0, 0); //DEFAULT
-	}
-	private final BlockFace[] faces = { BlockFace.SELF, BlockFace.UP, BlockFace.DOWN, BlockFace.NORTH, BlockFace.EAST, BlockFace.SOUTH, BlockFace.WEST };
-    
-	@SuppressWarnings("deprecation")
-	public Entry<Boolean, Boolean> generatesCobble(int id, Block b){
-	    int mirrorID1 = (id == 8) || (id == 9) ? 10 : 8;
-	    int mirrorID2 = (id == 8) || (id == 9) ? 11 : 9;
-	    
-	    for(BlockFace face : this.faces){
-	        Block r = b.getRelative(face, 1);
-	        if ((r.getTypeId() == mirrorID1) || (r.getTypeId() == mirrorID2)) {
-	    	    Entry<Boolean, Boolean> e = new AbstractMap.SimpleEntry<Boolean, Boolean>(true, false);
-	        	if (face.equals(BlockFace.UP)) {
-	        		e.setValue(true);
-	        	} else {
-	        		e.setValue(false);
-	        	}
-	            return e;
-	       }
-	    }
-	    Entry<Boolean, Boolean> e = new AbstractMap.SimpleEntry<Boolean, Boolean>(false, false);
-	    return new AbstractMap.SimpleEntry<Boolean, Boolean>(false, false);
-	 }
-}

+ 3 - 0
config.yml → src/config.yml

@@ -28,3 +28,6 @@ generators:
     - SANDSTONE:5.0
     permission: 'oregen.vip'
     unlock_islandLevel: 0
+# Here you can define worlds where the generator should not work
+disabled-worlds:
+- "world_nether"

+ 29 - 32
de/Linus122/customoregen/Cmd.java → src/de/Linus122/customoregen/Cmd.java

@@ -1,32 +1,29 @@
-package de.Linus122.customoregen;
-
-import java.io.IOException;
-
-import org.bukkit.command.Command;
-import org.bukkit.command.CommandExecutor;
-import org.bukkit.command.CommandSender;
-
-public class Cmd implements CommandExecutor {
-
-	Main main;
-	public Cmd(Main main) {
-		this.main = main;
-	}
-
-	public boolean onCommand(CommandSender cs, Command arg1, String arg2,
-			String[] arg3) {
-		if(!cs.hasPermission("customoregen.admin")){
-			cs.sendMessage("You dont have permissions.");
-		}else{
-			try {
-				main.reload();
-			} catch (IOException e) {
-				// TODO Auto-generated catch block
-				e.printStackTrace();
-			}
-			cs.sendMessage("§aConfig reloaded!");
-		}
-		return true;
-	}
-
-}
+package de.Linus122.customoregen;
+
+import java.io.IOException;
+import org.bukkit.command.Command;
+import org.bukkit.command.CommandExecutor;
+import org.bukkit.command.CommandSender;
+
+public class Cmd implements CommandExecutor {
+	Main main;
+
+	public Cmd(Main main) {
+		this.main = main;
+	}
+
+	public boolean onCommand(CommandSender cs, Command arg1, String arg2, String[] arg3) {
+		if (!cs.hasPermission("customoregen.admin")) {
+			cs.sendMessage("You dont have permissions.");
+		} else {
+			try {
+				this.main.reload();
+			} catch (IOException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+			cs.sendMessage("§aConfig reloaded!");
+		}
+		return true;
+	}
+}

+ 107 - 0
src/de/Linus122/customoregen/Events.java

@@ -0,0 +1,107 @@
+package de.Linus122.customoregen;
+
+import java.util.AbstractMap;
+import java.util.Random;
+import java.util.Map.Entry;
+
+import org.bukkit.Material;
+import org.bukkit.block.Block;
+import org.bukkit.block.BlockFace;
+import org.bukkit.entity.Player;
+import org.bukkit.event.EventHandler;
+import org.bukkit.event.Listener;
+import org.bukkit.event.block.BlockFromToEvent;
+
+public class Events implements Listener {
+	@EventHandler
+	public void onFromTo(BlockFromToEvent event) {
+		if (Main.disabledWorlds.contains(event.getBlock().getLocation().getWorld().getName())) {
+			return;
+		}
+		// System.out.println("From: " + event.getBlock().getType().name());
+		// System.out.println("To: " + event.getToBlock().getType().name());
+		// System.out.println("Face: " + event.getFace().name());
+
+		int id = event.getBlock().getTypeId();
+		if ((id >= 8) && (id <= 11)) {
+			Block b = event.getToBlock();
+			Entry<Boolean, Boolean> e = generatesCobble(id, b);
+			boolean generatesCobble = e.getKey();
+			boolean stoneGen = e.getValue();
+
+			int toid = b.getTypeId();
+			if ((toid == 0) && (generatesCobble)) {
+				GeneratorConfig gc = null;
+
+				Player p = Main.getOwner(b.getLocation());
+				if (p == null) {
+					gc = Main.generatorConfigs.get(0);
+				} else {
+					int islandLevel = Main.getLevel(p);
+
+					if (Main.activeInWorld.getName().equals(b.getWorld().getName())) {
+						for (GeneratorConfig gc2 : Main.generatorConfigs) {
+							if (gc2 == null) {
+								continue;
+							}
+
+							if (p.hasPermission(gc2.permission) && islandLevel >= gc2.unlock_islandLevel) {
+								// Weiter
+								gc = gc2;
+							}
+
+						}
+					}
+				}
+				if (gc == null)
+					return;
+				if (getObject(gc) == null)
+					return;
+				GeneratorItem winning = getObject(gc);
+				if (Material.getMaterial(winning.name) == null)
+					return;
+				// b.setType(Material.getMaterial(winning));
+				if (Material.getMaterial(winning.name).equals(Material.COBBLESTONE) && winning.damage == 0
+						&& stoneGen) {
+					return;
+				}
+				b.setTypeIdAndData(Material.getMaterial(winning.name).getId(), winning.damage, true);
+			}
+		}
+	}
+
+	public GeneratorItem getObject(GeneratorConfig gc) {
+
+		Random random = new Random();
+		double d = random.nextDouble() * 100;
+		for (GeneratorItem key : gc.itemList) {
+			if ((d -= key.chance) < 0)
+				return key;
+		}
+		return new GeneratorItem("COBBLESTONE", (byte) 0, 0); // DEFAULT
+	}
+
+	private final BlockFace[] faces = { BlockFace.SELF, BlockFace.UP, BlockFace.DOWN, BlockFace.NORTH, BlockFace.EAST,
+			BlockFace.SOUTH, BlockFace.WEST };
+
+	@SuppressWarnings("deprecation")
+	public Entry<Boolean, Boolean> generatesCobble(int id, Block b) {
+		int mirrorID1 = (id == 8) || (id == 9) ? 10 : 8;
+		int mirrorID2 = (id == 8) || (id == 9) ? 11 : 9;
+
+		for (BlockFace face : this.faces) {
+			Block r = b.getRelative(face, 1);
+			if ((r.getTypeId() == mirrorID1) || (r.getTypeId() == mirrorID2)) {
+				Entry<Boolean, Boolean> e = new AbstractMap.SimpleEntry<Boolean, Boolean>(true, false);
+				if (face.equals(BlockFace.UP)) {
+					e.setValue(true);
+				} else {
+					e.setValue(false);
+				}
+				return e;
+			}
+		}
+		Entry<Boolean, Boolean> e = new AbstractMap.SimpleEntry<Boolean, Boolean>(false, false);
+		return new AbstractMap.SimpleEntry<Boolean, Boolean>(false, false);
+	}
+}

+ 11 - 11
de/Linus122/customoregen/GeneratorConfig.java → src/de/Linus122/customoregen/GeneratorConfig.java

@@ -1,11 +1,11 @@
-package de.Linus122.customoregen;
-
-import java.util.ArrayList;
-import java.util.List;
-
-
-public class GeneratorConfig {
-	public List<GeneratorItem> itemList = new ArrayList<GeneratorItem>();
-	public String permission = ";";
-	public int unlock_islandLevel = 0;
-}
+package de.Linus122.customoregen;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+public class GeneratorConfig {
+	public List<GeneratorItem> itemList = new ArrayList<GeneratorItem>();
+	public String permission = ";";
+	public int unlock_islandLevel = 0;
+}

+ 0 - 0
de/Linus122/customoregen/GeneratorItem.java → src/de/Linus122/customoregen/GeneratorItem.java


+ 161 - 147
de/Linus122/customoregen/Main.java → src/de/Linus122/customoregen/Main.java

@@ -1,147 +1,161 @@
-package de.Linus122.customoregen;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.UUID;
-
-import org.bukkit.Bukkit;
-import org.bukkit.Location;
-import org.bukkit.World;
-import org.bukkit.entity.Player;
-import org.bukkit.plugin.PluginManager;
-import org.bukkit.plugin.java.JavaPlugin;
-
-
-public class Main extends JavaPlugin{
-	public static List<GeneratorConfig> generatorConfigs = new ArrayList<GeneratorConfig>();
-	
-	public static World activeInWorld;
-	@Override
-	public void onEnable(){
-		PluginManager pm = Bukkit.getPluginManager();
-		pm.registerEvents(new Events(), this);
-		Bukkit.getPluginCommand("customoregen").setExecutor(new Cmd(this));
-		
-		try {
-			loadConfig();
-		} catch (IOException e) {
-			// TODO Auto-generated catch block
-			e.printStackTrace();
-		}
-		if(Bukkit.getServer().getPluginManager().isPluginEnabled("ASkyBlock")){
-			activeInWorld = com.wasteofplastic.askyblock.ASkyBlock.getIslandWorld();
-		}else
-		if(Bukkit.getServer().getPluginManager().isPluginEnabled("AcidIsland")){
-			activeInWorld = com.wasteofplastic.acidisland.ASkyBlock.getIslandWorld();	
-		}else
-		if(Bukkit.getServer().getPluginManager().isPluginEnabled("uSkyBlock")){
-			activeInWorld = us.talabrek.ultimateskyblock.uSkyBlock.getSkyBlockWorld();
-		}
-	}
-	@Override
-	public void onDisable(){
-		
-	}
-	public static int getLevel(Player p){
-		if(Bukkit.getServer().getPluginManager().isPluginEnabled("ASkyBlock")){
-			return com.wasteofplastic.askyblock.ASkyBlockAPI.getInstance().getIslandLevel(p.getUniqueId());
-		}else
-		if(Bukkit.getServer().getPluginManager().isPluginEnabled("AcidIsland")){
-			return com.wasteofplastic.acidisland.ASkyBlockAPI.getInstance().getIslandLevel(p.getUniqueId());
-		}else 
-		if(Bukkit.getServer().getPluginManager().isPluginEnabled("uSkyBlock")){
-			return (int) Math.floor(us.talabrek.ultimateskyblock.uSkyBlock.getAPI().getIslandLevel(p));
-		}
-		return 0;
-	}
-	static HashMap<UUID, Player> map = new HashMap<UUID, Player>();
-	public static Player getOwner(Location loc){
-		Set<Location> set = new HashSet<Location>();
-		set.add(loc);
-		
-		UUID uuid = null;
-		if(Bukkit.getServer().getPluginManager().isPluginEnabled("ASkyBlock")){
-			uuid = com.wasteofplastic.askyblock.ASkyBlockAPI.getInstance().getOwner(com.wasteofplastic.askyblock.ASkyBlockAPI.getInstance().locationIsOnIsland(set, loc));
-		}else
-		if(Bukkit.getServer().getPluginManager().isPluginEnabled("AcidIsland")){
-			uuid = com.wasteofplastic.acidisland.ASkyBlockAPI.getInstance().getOwner(com.wasteofplastic.acidisland.ASkyBlockAPI.getInstance().locationIsOnIsland(set, loc));
-		}else 
-		if(Bukkit.getServer().getPluginManager().isPluginEnabled("uSkyBlock")){
-			String player = us.talabrek.ultimateskyblock.uSkyBlock.getInstance().getIslandInfo(loc).getLeader();
-			if(Bukkit.getPlayer(player) != null){
-				if(Bukkit.getPlayer(player).getUniqueId() != null){
-					uuid = Bukkit.getPlayer(player).getUniqueId();
-				}
-			}
-		}
-		Player p = Bukkit.getPlayer(uuid);
-		//Offline buffering
-		if(p != null){
-			map.put(uuid, p);
-		}else{
-			if(map.containsKey(uuid)){
-				p = map.get(uuid);
-			}
-		}
-		return p;
-	}
-	public void reload() throws IOException{
-		this.reloadConfig();
-		loadConfig();
-	}
-	public void loadConfig() throws IOException{
-		File cfg = new File("plugins/CustomOreGen/config.yml");
-		File dir = new File("plugins/CustomOreGen/");
-		if(!dir.exists()) dir.mkdirs();
-		if(!cfg.exists()){
-			FileOutputStream writer = new FileOutputStream(new File(getDataFolder() + "/config.yml"));
-			InputStream out = this.getClassLoader().getResourceAsStream("config.yml");
-			byte[] linebuffer = new byte[4096];
-			int lineLength = 0;
-			while((lineLength = out.read(linebuffer)) > 0)
-			{
-			   writer.write(linebuffer, 0, lineLength);
-			}
-			writer.close();	
-		}
-		 
-		
-		generatorConfigs = new ArrayList<GeneratorConfig>();
-		int i = 0;
-		while(true){
-			i++;
-			if(this.getConfig().contains("generators.generator" + i)){
-				GeneratorConfig gc = new GeneratorConfig();
-				gc.permission = this.getConfig().getString("generators.generator" + i + ".permission");
-				gc.unlock_islandLevel = this.getConfig().getInt("generators.generator" + i + ".unlock_islandLevel");
-				for(String raw : this.getConfig().getStringList("generators.generator" + i + ".blocks")){
-					try{
-						if(!raw.contains("!")){
-							String material = raw.split(":")[0];
-							double percent = Double.parseDouble(raw.split(":")[1]);
-							gc.itemList.add(new GeneratorItem(material, (byte) 0, percent));
-						}else{
-							String material = raw.split("!")[0];
-							double percent = Double.parseDouble(raw.split(":")[1]);
-							int damage = Integer.parseInt(raw.split("!")[1].split(":")[0]);
-							gc.itemList.add(new GeneratorItem(material, (byte) damage, percent));
-						}
-					}catch(Exception e){
-					}
-				}
-				generatorConfigs.add(gc);
-			}else{
-				break;
-			}
-			
-		}
-		//this.saveConfig();
-	}
-}
+package de.Linus122.customoregen;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.UUID;
+import org.bukkit.Bukkit;
+import org.bukkit.Location;
+import org.bukkit.World;
+import org.bukkit.command.ConsoleCommandSender;
+import org.bukkit.entity.Player;
+import org.bukkit.plugin.PluginManager;
+import org.bukkit.plugin.java.JavaPlugin;
+
+
+public class Main extends JavaPlugin {
+	public static List<GeneratorConfig> generatorConfigs = new ArrayList<GeneratorConfig>();
+	public static List<String> disabledWorlds = new ArrayList<String>();
+
+	public static World activeInWorld;
+
+	public static ConsoleCommandSender clogger;
+
+	public void onEnable() {
+		clogger = getServer().getConsoleSender();
+		PluginManager pm = Bukkit.getPluginManager();
+		pm.registerEvents(new Events(), this);
+		Bukkit.getPluginCommand("customoregen").setExecutor(new Cmd(this));
+		try{
+			loadConfig();
+		}catch(IOException e) {
+			e.printStackTrace();
+		}
+		disabledWorlds = getConfig().getStringList("disabled-worlds");
+		if(Bukkit.getServer().getPluginManager().isPluginEnabled("ASkyBlock")) {
+			activeInWorld = com.wasteofplastic.askyblock.ASkyBlock.getIslandWorld();
+			clogger.sendMessage("§6[CustomOreGen] §aUsing ASkyBlock as SkyBlock-Plugin");
+		}else if(Bukkit.getServer().getPluginManager().isPluginEnabled("AcidIsland")) {
+			activeInWorld = com.wasteofplastic.acidisland.ASkyBlock.getIslandWorld();
+			clogger.sendMessage("§6[CustomOreGen] §aUsing AcidIsland as SkyBlock-Plugin");
+		}else if(Bukkit.getServer().getPluginManager().isPluginEnabled("uSkyBlock")) {
+			us.talabrek.ultimateskyblock.api.uSkyBlockAPI api = (us.talabrek.ultimateskyblock.api.uSkyBlockAPI) Bukkit.getPluginManager().getPlugin("uSkyBlock");
+			api.getConfig().getString("options.general.worldName");
+			activeInWorld = Bukkit.getWorld(api.getConfig().getString("options.general.worldName"));
+
+			clogger.sendMessage("§6[CustomOreGen] §aUsing uSkyBlock as SkyBlock-Plugin");
+		}
+	}
+
+	public void onDisable() {
+		
+	}
+
+	public static int getLevel(Player p) {
+		if(Bukkit.getServer().getPluginManager().isPluginEnabled("ASkyBlock")) {
+			return com.wasteofplastic.askyblock.ASkyBlockAPI.getInstance().getIslandLevel(p.getUniqueId());
+		}
+		if(Bukkit.getServer().getPluginManager().isPluginEnabled("AcidIsland")) {
+			return com.wasteofplastic.acidisland.ASkyBlockAPI.getInstance().getIslandLevel(p.getUniqueId());
+		}
+		if(Bukkit.getServer().getPluginManager().isPluginEnabled("uSkyBlock")) {
+			return (int) Math.floor(us.talabrek.ultimateskyblock.uSkyBlock.getAPI().getIslandLevel(p));
+		}
+		return 0;
+	}
+	
+	static HashMap<UUID, Player> map = new HashMap<UUID, Player>();
+
+	public static Player getOwner(Location loc) {
+		Set<Location> set = new HashSet<Location>();
+		set.add(loc);
+
+		UUID uuid = null;
+		if(Bukkit.getServer().getPluginManager().isPluginEnabled("ASkyBlock")) {
+			uuid = com.wasteofplastic.askyblock.ASkyBlockAPI.getInstance()
+					.getOwner(com.wasteofplastic.askyblock.ASkyBlockAPI.getInstance().locationIsOnIsland(set, loc));
+		}else if(Bukkit.getServer().getPluginManager().isPluginEnabled("AcidIsland")) {
+			uuid = com.wasteofplastic.acidisland.ASkyBlockAPI.getInstance()
+					.getOwner(com.wasteofplastic.acidisland.ASkyBlockAPI.getInstance().locationIsOnIsland(set, loc));
+		}else if(Bukkit.getServer().getPluginManager().isPluginEnabled("uSkyBlock")) {
+			String player = us.talabrek.ultimateskyblock.uSkyBlock.getInstance().getIslandInfo(loc).getLeader();
+			if((Bukkit.getPlayer(player) != null) && (Bukkit.getPlayer(player).getUniqueId() != null)) {
+				uuid = Bukkit.getPlayer(player).getUniqueId();
+			}
+		}
+
+		Player p = Bukkit.getPlayer(uuid);
+
+		if(p != null) {
+			map.put(uuid, p);
+			if(p.isOnline()) {
+				activeInWorld = p.getWorld();
+			}
+		}else if(map.containsKey(uuid)) {
+			p = (Player) map.get(uuid);
+		}
+
+		return p;
+	}
+
+	public void reload() throws IOException {
+		reloadConfig();
+		loadConfig();
+	}
+
+	public void loadConfig() throws IOException {
+		File cfg = new File("plugins/CustomOreGen/config.yml");
+		File dir = new File("plugins/CustomOreGen/");
+		if(!dir.exists()) dir.mkdirs();
+		if(!cfg.exists()){
+			FileOutputStream writer = new FileOutputStream(new File(getDataFolder() + "/config.yml"));
+			InputStream out = this.getClassLoader().getResourceAsStream("config.yml");
+			byte[] linebuffer = new byte[4096];
+			int lineLength = 0;
+			while((lineLength = out.read(linebuffer)) > 0)
+			{
+			   writer.write(linebuffer, 0, lineLength);
+			}
+			writer.close();	
+		}
+		 
+
+		generatorConfigs = new ArrayList<GeneratorConfig>();
+		int i = 0;
+		while(true){
+			i++;
+			if(this.getConfig().contains("generators.generator" + i)){
+				GeneratorConfig gc = new GeneratorConfig();
+				gc.permission = this.getConfig().getString("generators.generator" + i + ".permission");
+				gc.unlock_islandLevel = this.getConfig().getInt("generators.generator" + i + ".unlock_islandLevel");
+				for(String raw : this.getConfig().getStringList("generators.generator" + i + ".blocks")){
+					try{
+						if(!raw.contains("!")){
+							String material = raw.split(":")[0];
+							double percent = Double.parseDouble(raw.split(":")[1]);
+							gc.itemList.add(new GeneratorItem(material, (byte) 0, percent));
+						}else{
+							String material = raw.split("!")[0];
+							double percent = Double.parseDouble(raw.split(":")[1]);
+							int damage = Integer.parseInt(raw.split("!")[1].split(":")[0]);
+							gc.itemList.add(new GeneratorItem(material, (byte) damage, percent));
+						}
+					}catch(Exception e){
+					}
+				}
+				generatorConfigs.add(gc);
+			}else{
+				break;
+			}
+			
+		}
+		//this.saveConfig();
+		clogger.sendMessage("§6[CustomOreGen] §aLoaded §c" + generatorConfigs.size() + " §agenerators");
+	}
+}

+ 1 - 1
plugin.yml → src/plugin.yml

@@ -1,5 +1,5 @@
 name: CustomOreGen
-version: 1.0
+version: 1.1
 description: Controls the Ore-Generator
 author: Linus122
 soft-depends: [ASkyBlock, AcidIsland, uSkyBlock]