From e382c297c0ca64071f4fa20559a964788beea8bf Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Wed, 23 Feb 2011 17:42:34 -0800 Subject: [PATCH] Created Configuration of worlds (markdown) --- Configuration-of-worlds.md | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Configuration-of-worlds.md diff --git a/Configuration-of-worlds.md b/Configuration-of-worlds.md new file mode 100644 index 0000000..3673e51 --- /dev/null +++ b/Configuration-of-worlds.md @@ -0,0 +1,54 @@ +# Configuration of worlds # + +There are two parts in `configuration.txt` that need to be checked when setting up Dynmap for multiple worlds. The first one is only for server-side rendering of the maps. Another part (under web-section) is about what and how the browser should show the map. + +An example of the first server-side part: +```yaml +# The maptypes Dynmap will use to render. +worlds: + - name: world + maps: + - class: org.dynmap.kzedmap.KzedMap + renderers: + - class: org.dynmap.kzedmap.DefaultTileRenderer + prefix: t + maximumheight: 127 + - class: org.dynmap.kzedmap.CaveTileRenderer + prefix: ct + maximumheight: 127 + - name: nether + maps: + - class: org.dynmap.kzedmap.KzedMap + renderers: + - class: org.dynmap.kzedmap.DefaultTileRenderer + prefix: nt + maximumheight: 64 +``` + +An example of the world configuration under the web-section: +```yaml +web: + defaultworld: world + worlds: + - title: World + name: world + maps: + - type: KzedMapType + title: Surface + name: surface + prefix: t + - type: KzedMapType + title: Cave + name: cave + prefix: ct + - title: Nether + name: nether + maps: + - type: KzedMapType + title: Surface + name: nether + prefix: nt +``` + +Of these two parts, make sure the names of the worlds match up with your world-directories (case-sensitive!). +Also make sure the prefixes of the maps under the web-section matches with the prefixes of the first part. \ No newline at end of file