Warps
Module warps. Its menu needs the menus module, prices need the economy module.
Settings files: warps.toml, menus/warps.json.
Commands
| Command | What it does | Permission | Default |
|---|---|---|---|
/warp <name> | Teleport to a server warp | brita.warps.use, with permissionPerWarp also brita.warp.<name> | everyone |
/warps, /warp | Open the warps menu (without the menus module: a clickable list in chat) | brita.warps.use | everyone |
/setwarp <name> | Create a warp where you stand, or move it there | brita.warps.set | operators |
/delwarp <name> | Delete a warp | brita.warps.delete | operators |
Warps are saved in britaessentials-warps.json in the world folder. Names use a-z, 0-9, - and _, at
most 32 characters; upper case is turned into lower case.
Settings
| Setting | What it does | Default |
|---|---|---|
enabled | Switches the warp commands on or off | true |
permissionPerWarp | Every warp needs brita.warp.<name> (LuckPerms: brita.warp.* for all). Without LuckPerms only operators have them. Locked warps are left out of /warps | false |
menu | The menu file /warps opens; empty: a clickable list in chat | warps |
waitSeconds, cooldownSeconds | Seconds to stand still before the teleport, and before the next one | 0 |
Menu
menus/warps.json is a normal menu file whose list is filled with the warps. A new warp
appears there by itself. To give a warp its own slot and look, add a button with "pin": "<warp>"; the
bundled file pins hub to slot 40. The mod writes warps.json again whenever it is missing.
In names and lore a warp has {name}, {world}, {x}, {y}, {z} and {price}.
Prices
In economy.json under costs: "warp": 10 for every warp, "warp mine": 25 for the warp mine (it
replaces the general price; 0 makes it free). The price is paid on arrival and shows in the menu.