mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-01 13:37:40 +01:00
Merge pull request #344 from mikeprimm/master
Add subzones for Residence regions support
This commit is contained in:
commit
6259da4e0f
@ -17,6 +17,16 @@ regionConstructors['Residence'] = function(dynmap, configuration) {
|
|||||||
})));
|
})));
|
||||||
|
|
||||||
boxLayers.push(boxLayer);
|
boxLayers.push(boxLayer);
|
||||||
|
$.each(residence.Subzones, function(szname, subzone) {
|
||||||
|
$.each(subzone.Areas, function(name2, area2) {
|
||||||
|
var subzoneLayer = configuration.createBoxLayer(area2.X1, area2.X2, area2.Y1, area2.Y2, area2.Z1, area2.Z2);
|
||||||
|
subzoneLayer.bindPopup(configuration.createPopupContent(name2, $.extend(subzone, {
|
||||||
|
owners: { players: [subzone.Permissions.Owner] },
|
||||||
|
flags: subzone.Permissions.AreaFlags
|
||||||
|
})));
|
||||||
|
boxLayers.push(subzoneLayer);
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user