diff --git a/pom.xml b/pom.xml
index bb1b6c5..f5a49b8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,13 +56,13 @@
org.dynmap
dynmap-api
- [0.25,)
+ [0.28,)
compile
org.bukkit
bukkit
- [1.0.0-R1-SNAPSHOT,)
+ [1.0.1-R1-SNAPSHOT,)
compile
diff --git a/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java b/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java
index 19342ac..1786410 100644
--- a/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java
+++ b/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java
@@ -520,11 +520,18 @@ public class DynmapFactionsPlugin extends JavaPlugin {
this.saveConfig(); /* Save updates, if needed */
/* Now, add marker set for mobs (make it transient) */
- set = markerapi.createMarkerSet("factions.markerset", cfg.getString("layer.name", "Factions"), null, false);
+ set = markerapi.getMarkerSet("factions.markerset");
+ if(set == null)
+ set = markerapi.createMarkerSet("factions.markerset", cfg.getString("layer.name", "Factions"), null, false);
+ else
+ set.setMarkerSetLabel(cfg.getString("layer.name", "Factions"));
if(set == null) {
severe("Error creating marker set");
return;
}
+ int minzoom = cfg.getInt("layer.minzoom", 0);
+ if(minzoom > 0)
+ set.setMinZoom(minzoom);
set.setLayerPriority(cfg.getInt("layer.layerprio", 10));
set.setHideByDefault(cfg.getBoolean("layer.hidebydefault", false));
use3d = cfg.getBoolean("use3dregions", false);
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index 1b3e4d2..8da0def 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -10,7 +10,9 @@ layer:
hidebydefault: false
# ordering priority in layer menu (low goes before high - default is 0)
layerprio: 2
-
+ # (optional) set minimum zoom level before layer is visible (0 = defalt, always visible)
+ minzoom: 0
+
# Format for popup - substitute values for macros
infowindow: '%regionname%
Flags
%flags%
'