From 4f4fa877cf00b42d317d6b9e78764f412781d400 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Tue, 27 Dec 2016 03:15:37 +0100 Subject: [PATCH] #192: DungeonConfig doesn't need to get initialized --- README.md | 6 ++-- abstract/pom.xml | 2 +- core/pom.xml | 2 +- .../dungeonsxl/config/DungeonConfig.java | 33 ------------------- craftbukkit_1_10_R1/pom.xml | 2 +- craftbukkit_1_11_R1/pom.xml | 2 +- craftbukkit_1_9_R1/pom.xml | 2 +- craftbukkit_1_9_R2/pom.xml | 2 +- pom.xml | 4 +-- shade/pom.xml | 2 +- 10 files changed, 12 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index c74254d2..185535e5 100644 --- a/README.md +++ b/README.md @@ -48,10 +48,10 @@ If you want to learn how to use DungeonsXL step by step, please have a look at t ## Compatibility ### Server -DungeonsXL works with 1.7.8 and higher. However, support for 1.11 / 1.10.x / 1.9.x has a higher priority than support for 1.8.x and lower. See [here](../../wiki/legacy-support) for detailed information. Some cosmetic features require the Spigot API and will therefore not work with CraftBukkit. +DungeonsXL works with 1.7.8 and higher. However, support for 1.11.x / 1.10.x / 1.9.x has a higher priority than support for 1.8.x and lower. See [here](../../wiki/legacy-support) for detailed information. Some cosmetic features require the Spigot API and will therefore not work with CraftBukkit. Older versions of DungeonsXL support versions since Minecraft 1.3.x, but of course, they are completely unsupported. -* [1.7.8-1.11](../../tree/master) +* [1.7.8-1.11.2](../../tree/master) * [1.7.5](../../tree/50f772d14281bfe278dba2559d1758cc459c1a30) * [1.7.2](../../tree/eccf82b7335dfb0723e3cd37a57df1a968ea7842) * [1.6.4](../../tree/780145cf783ea76fe1bfee04cf89216bd4f92e1d) @@ -68,7 +68,7 @@ Building DungeonsXL from source requires [Apache Maven](https://maven.apache.org Maven automatically fetches all dependencies and builds DungeonsXL; just run _build.bat_ or enter the command _mvn clean install_. #### BRCommons -[BRCommons](https://github.com/DRE2N/BRCommons) is a util library for common tasks. DungeonsXL contains BRCommons 1.0.4. +[BRCommons](https://github.com/DRE2N/BRCommons) is a util library for common tasks. DungeonsXL contains BRCommons 1.0.6. #### Caliburn API [Caliburn](https://github.com/DRE2N/CaliburnAPI) is an API to read custom items and mobs from config files. DungeonsXL contains Caliburn Beta 0.2.3. diff --git a/abstract/pom.xml b/abstract/pom.xml index 46a3dd22..80c044e7 100644 --- a/abstract/pom.xml +++ b/abstract/pom.xml @@ -8,6 +8,6 @@ io.github.dre2n dungeonsxl - 0.15.4 + 0.15.5 diff --git a/core/pom.xml b/core/pom.xml index d4296519..448473d3 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -8,7 +8,7 @@ io.github.dre2n dungeonsxl - 0.15.4 + 0.15.5 diff --git a/core/src/main/java/io/github/dre2n/dungeonsxl/config/DungeonConfig.java b/core/src/main/java/io/github/dre2n/dungeonsxl/config/DungeonConfig.java index 8bae5ca4..e032d804 100644 --- a/core/src/main/java/io/github/dre2n/dungeonsxl/config/DungeonConfig.java +++ b/core/src/main/java/io/github/dre2n/dungeonsxl/config/DungeonConfig.java @@ -190,39 +190,6 @@ public class DungeonConfig extends BRConfig { return containsFloor(worlds.getResourceByName(mapName)); } - @Override - public void initialize() { - if (!config.contains("floors")) { - config.createSection("floors"); - } - - if (!config.contains("startFloor")) { - config.set("startFloor", startFloor.getName()); - } - - if (!config.contains("endFloor")) { - config.set("endFloor", endFloor.getName()); - } - - if (!config.contains("floorCount")) { - config.set("floorCount", floorCount); - } - - if (!config.contains("removeWhenPlayed")) { - config.set("removeWhenPlayed", removeWhenPlayed); - } - - if (!config.contains("overrideValues")) { - config.createSection("overrideValues"); - } - - if (!config.contains("defaultValues")) { - config.createSection("defaultValues"); - } - - save(); - } - @Override public void load() { if (config.contains("floors")) { diff --git a/craftbukkit_1_10_R1/pom.xml b/craftbukkit_1_10_R1/pom.xml index d94267e0..1388b23f 100644 --- a/craftbukkit_1_10_R1/pom.xml +++ b/craftbukkit_1_10_R1/pom.xml @@ -8,7 +8,7 @@ io.github.dre2n dungeonsxl - 0.15.4 + 0.15.5 diff --git a/craftbukkit_1_11_R1/pom.xml b/craftbukkit_1_11_R1/pom.xml index 36cb1f3e..db3d3b4c 100644 --- a/craftbukkit_1_11_R1/pom.xml +++ b/craftbukkit_1_11_R1/pom.xml @@ -8,7 +8,7 @@ io.github.dre2n dungeonsxl - 0.15.4 + 0.15.5 diff --git a/craftbukkit_1_9_R1/pom.xml b/craftbukkit_1_9_R1/pom.xml index 7b562dea..e1177588 100644 --- a/craftbukkit_1_9_R1/pom.xml +++ b/craftbukkit_1_9_R1/pom.xml @@ -8,7 +8,7 @@ io.github.dre2n dungeonsxl - 0.15.4 + 0.15.5 diff --git a/craftbukkit_1_9_R2/pom.xml b/craftbukkit_1_9_R2/pom.xml index 8377c709..7b66534c 100644 --- a/craftbukkit_1_9_R2/pom.xml +++ b/craftbukkit_1_9_R2/pom.xml @@ -8,7 +8,7 @@ io.github.dre2n dungeonsxl - 0.15.4 + 0.15.5 diff --git a/pom.xml b/pom.xml index 17778a70..0315a51f 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 io.github.dre2n dungeonsxl - 0.15.4 + 0.15.5 pom DungeonsXL https://dre2n.github.io @@ -36,7 +36,7 @@ io.github.dre2n commons - 1.0.5 + 1.0.6 io.github.dre2n diff --git a/shade/pom.xml b/shade/pom.xml index 71f85026..1be0eb16 100644 --- a/shade/pom.xml +++ b/shade/pom.xml @@ -8,7 +8,7 @@ io.github.dre2n dungeonsxl - 0.15.4 + 0.15.5 dungeonsxl-${project.version}${buildNo}