Skip to content
mikeprimm edited this page Nov 21, 2011 · 10 revisions

This plugin supports the display of regions and subzones defined in the Residence plugin. The configuration is found in the config.yml file, found in the plugins/dynmap-residence directory. The default config.yml content is:

# dynmap-residence configuration
#
update:
  # Seconds between checks for Residence updates
  period: 300

layer:
  name: "Residence"
  # Make mobs layer hidden by default
  hidebydefault: false
  # ordering priority in layer menu (low goes before high - default is 0)
  layerprio: 1

# Set true to show 3D volumes for zones
use3dregions: false

# How deep to nest residence subzones
resdepth: 2

# Format for popup - substitute values for macros
infowindow: '<div class="infowindow"><span style="font-size:120%;">%regionname%</span><br /> Owner <span style="font-weight:bold;">%playerowners%</span><br />Flags<br /><span style="font-weight:bold;">%flags%</span></div>'

regionstyle:
  strokeColor: "#FF0000"
  strokeOpacity: 0.8
  strokeWeight: 3
  fillColor: "#FF0000"
  fillOpacity: 0.35

# Optional setting to limit which regions to show, by name - if commented out, all regions are shown
#visibleregions:
# - homebase
# - miningsite
# - area.subzone1

# Optional setting to hide specific regions, by name
#hiddenregions:
# - hiddenplace
# - secretsite

# Optional per-region overrides for regionstyle (any defined replace those in regionstyle)
#customstyle:
# homebase:
# strokeColor: "#00FF00"
# homebase.sub1:
# strokeColor: "#007F00"

The settings for this plugin are defined below:

  • update : The settings in this section control details of how and when updates from Residence are processed. The following settings are defined:

    • period : This specifies the number of seconds between checks of the Residence configuration.
  • resdepth : This is the number of layers of Residence zones processed. 1 is just top level residences, 2 adds the first layer of subzones, etc.

  • use3dregions : If set to true, the regions will be presented with their vertical limits shown (as a cubiod or other volume). If set to false, the region is shown 2D at a position corresponding to average ground level (Y=64).

  • infowindow : this setting controls the generation of the HTML within the popup window displayed with the region is clicked. Several substitution macros are supported, which will be resolved into appropriate data specific to the region being displayed:

    • %regionname% - the name of the region or region.subzone

    • %playerowners% - the names of the player that own the region

    • $flags% - the various attribute flags for the region

  • regionstyle : this is a map of attributes used for describing the coloring of the outline and fill for the regions being presented. The attributes include:

    • strokeColor : this specified the color of the outline of the regions

    • strokeOpacity : this specifies how opaque the outline is (0.0 = transparent, 1.0 = solid)

    • strokeWeight : this specifies the thickness of the outline

    • fillColor : this specifies the color used to fill the interior of the region

    • fillOpacity : this specifies how opaque the fill color is (0.0 = transparent, 1.0 = solid)

  • visibleregions : this optional parameter, if defined, is used to provide a list of region names to be shown (any not on the list will not be shown). If the visibleregions attribute is not defined (the default), all regions will be shown. To tailor a subarea of a Residence, add a section named residencename.areaname (e.g. myresidence.lot123).

  • hiddenregions : this optional parameter, if defined, is used to provide a list of region and subzone names to NOT be shown.

  • customstyle : this optional parameter, if defined, allows the regionstyle attributes used for specific regions to be overridden. The sections under the customstyle correspond to the name of the region to be customized, and the attributes within that section are the style settings (strokeColor, strokeOpacity, strokeWeight, fillColor, fillOpacity) that will be used in place of the defaults from the regionstyle setting. To tailor a subarea of a Residence, add a section named residencename.areaname (e.g. myresidence.lot123).

  • layer : This section controls display of the layer on the Dynmap maps, The attributes defined within the section include:

    • label : Name of the layer (controls what is shown on the layer selector).

    • hidebydefault : this optional parameter, if defined and set to true, changes the default visibility state for the map layer with the region information to be hidden. The layer can still be made visible with the layer control on the web client UI.

    • layerprio : this optional parameter provides an ordering weight for the layer in the layer selection control, which orders from lowest to highest layerprio (and then alphabetically for equal priority layers). Default is 1.

  • customstyle : this optional parameter, if defined, allows the regionstyle attributes used for specific regions to be overridden. The sections under the customstyle correspond to the name of the region to be customized, and the attributes within that section are the style settings (strokeColor, strokeOpacity, strokeWeight, fillColor, fillOpacity) that will be used in place of the defaults from the regionstyle setting.

Clone this wiki locally