mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-02 16:49:56 +01:00
Add hiddenworlds attribute to suppress templates on selected worlds
This commit is contained in:
parent
23f5ec5a27
commit
7cf75873b8
@ -379,13 +379,18 @@ public class DynmapPlugin extends JavaPlugin {
|
||||
worlds = new ArrayList<ConfigurationNode>();
|
||||
worldsupdated = true;
|
||||
}
|
||||
List<String> hiddenworlds = node.getStrings("hiddenworlds", Collections.EMPTY_LIST);
|
||||
|
||||
/* Iternate by world type - so that order in templateworldtypes drives our default order */
|
||||
for(int wtype = 0; wtype < templateworldtypes.length; wtype++) {
|
||||
ConfigurationNode typetemplate = template.getNode(templateworldtypes[wtype]);
|
||||
if(typetemplate == null)
|
||||
continue;
|
||||
for(World w : getServer().getWorlds()) { /* Roll through worlds */
|
||||
String wn = w.getName();
|
||||
String wn = w.getName();
|
||||
/* Skip processing on hidden worlds */
|
||||
if(hiddenworlds.contains(wn))
|
||||
continue;
|
||||
/* Find node for this world, if any */
|
||||
ConfigurationNode world = null;
|
||||
int index;
|
||||
|
Loading…
Reference in New Issue
Block a user