Skip to content

Commit

Permalink
#192: DungeonConfig doesn't need to get initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
Sataniel98 committed Dec 27, 2016
1 parent de1d7e9 commit 4f4fa87
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 45 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion abstract/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<parent>
<groupId>io.github.dre2n</groupId>
<artifactId>dungeonsxl</artifactId>
<version>0.15.4</version>
<version>0.15.5</version>
</parent>
</project>
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.dre2n</groupId>
<artifactId>dungeonsxl</artifactId>
<version>0.15.4</version>
<version>0.15.5</version>
</parent>
<build>
<resources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,39 +190,6 @@ public boolean containsFloor(String mapName) {
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")) {
Expand Down
2 changes: 1 addition & 1 deletion craftbukkit_1_10_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.dre2n</groupId>
<artifactId>dungeonsxl</artifactId>
<version>0.15.4</version>
<version>0.15.5</version>
</parent>
<build>
<plugins>
Expand Down
2 changes: 1 addition & 1 deletion craftbukkit_1_11_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.dre2n</groupId>
<artifactId>dungeonsxl</artifactId>
<version>0.15.4</version>
<version>0.15.5</version>
</parent>
<build>
<plugins>
Expand Down
2 changes: 1 addition & 1 deletion craftbukkit_1_9_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.dre2n</groupId>
<artifactId>dungeonsxl</artifactId>
<version>0.15.4</version>
<version>0.15.5</version>
</parent>
<build>
<plugins>
Expand Down
2 changes: 1 addition & 1 deletion craftbukkit_1_9_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.dre2n</groupId>
<artifactId>dungeonsxl</artifactId>
<version>0.15.4</version>
<version>0.15.5</version>
</parent>
<build>
<plugins>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.dre2n</groupId>
<artifactId>dungeonsxl</artifactId>
<version>0.15.4</version>
<version>0.15.5</version>
<packaging>pom</packaging>
<name>DungeonsXL</name>
<url>https://dre2n.github.io</url>
Expand Down Expand Up @@ -36,7 +36,7 @@
<dependency>
<groupId>io.github.dre2n</groupId>
<artifactId>commons</artifactId>
<version>1.0.5</version>
<version>1.0.6</version>
</dependency>
<dependency>
<groupId>io.github.dre2n</groupId>
Expand Down
2 changes: 1 addition & 1 deletion shade/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.dre2n</groupId>
<artifactId>dungeonsxl</artifactId>
<version>0.15.4</version>
<version>0.15.5</version>
</parent>
<build>
<finalName>dungeonsxl-${project.version}${buildNo}</finalName>
Expand Down

0 comments on commit 4f4fa87

Please sign in to comment.