Commit 4822dd2a authored by Peter Deltchev's avatar Peter Deltchev
Browse files

Added config options for specifying the default map to load.

parent e0cb1911
......@@ -6,7 +6,7 @@
<groupId>net.cubespace.dynmap</groupId>
<artifactId>Dynmap-MultiServer</artifactId>
<version>0.5.0</version>
<version>0.5.1</version>
<build>
<defaultGoal>clean install</defaultGoal>
......@@ -154,4 +154,4 @@
<version>2.3.1-20150720.092759-2</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
</project>
......@@ -21,5 +21,9 @@ public class Main extends Config {
public String Webserver_webDir = "web/";
public String Webserver_Title = "Awesome Multiserver Dynmap";
public Integer Webserver_WorkerThreads = 16;
public String Webserver_DefaultWorld = "world";
public String Webserver_DefaultMap = "flat";
public ArrayList<Dynmap> DynMap = new ArrayList<>();
}
......@@ -62,8 +62,8 @@ public class DynmapConfigJSONHandler implements IHandler {
if (config == null) {
config = new DynmapConfig();
config.setDefaultmap("flat");
config.setDefaultworld("world");
config.setDefaultmap(mainConfig.Webserver_DefaultMap);
config.setDefaultworld(mainConfig.Webserver_DefaultWorld);
config.setConfighash(0);
config.setTitle(mainConfig.Webserver_Title);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment