Verified Commit 465516ff authored by Yannick Schinko's avatar Yannick Schinko
Browse files

Added SidebarOpened config

parent 8614e24e
Pipeline #401 passed with stages
in 1 minute and 19 seconds
package net.cubespace.dynmap.multiserver.Config;
import net.cubespace.Yamler.Config.Comment;
import net.cubespace.Yamler.Config.Config;
import java.io.File;
......@@ -23,6 +24,8 @@ public class Main extends Config {
public Integer Webserver_WorkerThreads = 16;
public String Webserver_DefaultWorld = "world";
public String Webserver_DefaultMap = "flat";
@Comment("Set SidebarOpened: 'true' to pin menu sidebar opened permanently, 'pinned' to default the sidebar to pinned, but allow it to unpin")
public String Webserver_SidebarOpened = "false";
public ArrayList<Dynmap> DynMap = new ArrayList<>();
......
......@@ -64,6 +64,7 @@ public class DynmapConfigJSONHandler implements IHandler {
config = new DynmapConfig();
config.setDefaultmap(mainConfig.Webserver_DefaultMap);
config.setDefaultworld(mainConfig.Webserver_DefaultWorld);
config.setSidebaropened(mainConfig.Webserver_SidebarOpened);
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