BlueBridge icon indicating copy to clipboard operation
BlueBridge copied to clipboard

More worldguard replacement variables.

Open ryantheleach opened this issue 3 years ago • 2 comments

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)

ryantheleach avatar Jan 15 '22 00:01 ryantheleach

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.

Mark-225 avatar Jan 15 '22 13:01 Mark-225

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.

ryantheleach avatar Jan 15 '22 23:01 ryantheleach