Add optional WorldEdit soft-dependency; use its wand selection for pos1/pos2
Build / build (push) Successful in 1m19s

This commit is contained in:
Michael Burgess
2026-08-07 10:43:06 -04:00
parent d1d61c5d68
commit 412c9411b8
8 changed files with 107 additions and 4 deletions
+9 -1
View File
@@ -10,7 +10,7 @@ slightly faster round. Last player standing wins.
- PaperMC 1.21.x (API version `1.21`)
- Java 21
- No other plugins required. Optional soft-dependencies: PlaceholderAPI, Vault.
- No other plugins required. Optional soft-dependencies: PlaceholderAPI, Vault, WorldEdit.
## Installation
@@ -97,6 +97,14 @@ Commands that require a physical location (`setlobby`, `setspawn`, `setspectator
### Floor selection details
- `pos1` / `pos2` define the two opposite corners of the rectangular floor region (any Y).
If [WorldEdit](https://enginehub.org/worldedit) is installed and you have an active WorldEdit
selection (made with the wand — left-click for position 1, right-click for position 2, or
`//pos1` / `//pos2`), running `/bp pos1 <arena>` / `/bp pos2 <arena>` adopts that selection's
corners directly instead of your standing location — no need to physically stand at each
corner. This is entirely optional: without a WorldEdit selection (or without WorldEdit
installed at all), the commands fall back to your current location exactly as before. Disable
it with `integrations.worldedit: false` in `config.yml` if you'd rather always use your
location even when WorldEdit is present.
- `setfloor` only changes which materials are *allowed* to be used/regenerated — it does not
touch blocks in the world.
- `generate` is the step that actually writes a random layout (biased evenly across the