dynmap icon indicating copy to clipboard operation
dynmap copied to clipboard

Whitelist for which worlds dynmap should render

Open ingrimmm opened this issue 13 years ago • 8 comments

From what I can tell there is no way to whitelist worlds so that dynmap will ONLY render those exact worlds. There's no easy way to "disable dynmap for all worlds except (world1, world2, world3...)"

This would be extremely useful in cases like DimDoors and Mystcraft Ages where new dimensions are spawned all the time - there's no easy way (afaik) to tell Dynmap to ignore them without manually creating a new entries for each new dimension as it is created.

An example of whitelist configuration could be ...

world-whitelist: true
     world: world
     world: DIM1
     world: DIM-1

and then all other worlds not explicity specified in the whitelist are ignored by Dynmap.

ingrimmm avatar Nov 26 '13 16:11 ingrimmm

To do this, set the deftemplatesuffix setting to 'bogus' - this will make it so that worlds, by default get no map definition. Then, use the /dmap command to create maps or to assign templates to the worlds you want to have maps.

mikeprimm avatar Nov 26 '13 22:11 mikeprimm

@mikeprimm awesome - thanks!

ingrimmm avatar Dec 05 '13 15:12 ingrimmm

Why are you closing the ticket on a very reasonable feature request just because an ugly workaround exists?

alexbobp avatar Sep 01 '15 22:09 alexbobp

Tis not closing, was closed two years ago;)

Cpt-Beefheart avatar Sep 01 '15 23:09 Cpt-Beefheart

yeah, closed two years ago with a bad workaround... someone should reopen it and make it an actual config option, because putting bogus in the config file is a bad fix.

alexbobp avatar Sep 01 '15 23:09 alexbobp

Did this not provide what you needed? https://github.com/webbukkit/dynmap/issues/1810

Cpt-Beefheart avatar Sep 01 '15 23:09 Cpt-Beefheart

ah I hadn't seen that! I had actually seen 3 different tracker tickets with the workaround of providing a bogus default template. That one you linked is a much better fix. Thanks!

alexbobp avatar Sep 01 '15 23:09 alexbobp

No prob!

Cpt-Beefheart avatar Sep 01 '15 23:09 Cpt-Beefheart