More worldguard replacement variables.
I would appreciate the ability to add the dimensions to worldguard regions.
The primary reason for using the display for us is to list plots available.
The X and Z width/breadth is readily apparent by viewing them on the map, but having them directly listed would be useful for cuboid regions.
The option to have a 'height' and 'depth' display, which could be the y component, offset by a 'sea-level' flag or value, (or worst case, just the y value)
Okay so I will probably add these new variables:
- ${width}, ${length}, ${height}: Dimensions on the x, z and y axis
- ${bottom:<offset>} ${top:<offset>}: Y coordinates of the bottom/top plane of the region with an optional offset
- ${sea-level}: Just the sea level of the world the region is in, mainly for nesting it into the bottom and top variables (e.g. ${bottom:${sea-level}})
The only difficulty here is probably getting the sea-level, because I have to get that from the Bukkit API (which I can't access asynchronously), so I might have to cache those values somehow.
That along with being able to pick which html template is used per plot would work for me, as I could hardcode the offset depending on the plot type being used.
However I worry that others using this may find that sealevel being global may be inflexible.