Add 'showlayercontrol' config setting and URL parameter, to allow hide of layer control

This commit is contained in:
Mike Primm 2011-12-15 00:01:21 +08:00 committed by mikeprimm
parent d5e1bc1b4d
commit f7dedff413
3 changed files with 29 additions and 11 deletions

View file

@ -25,6 +25,7 @@ public class ClientConfigurationComponent extends Component {
s(t, "sidebaropened", c.getString("sidebaropened", "false"));
s(t, "dynmapversion", plugin.getDescription().getVersion());
s(t, "cyrillic", c.getBoolean("cyrillic-support", false));
s(t, "showlayercontrol", c.getBoolean("showlayercontrol", true));
String sn = plugin.getServer().getServerName();
if(sn.equals("Unknown Server"))
sn = "Minecraft Dynamic Map";