Skip to main content

Warps

Module warps. Its menu needs the menus module, prices need the economy module. Settings files: warps.toml, menus/warps.json.

Commands​

CommandWhat it doesPermissionDefault
/warp <name>Teleport to a server warpbrita.warps.use, with permissionPerWarp also brita.warp.<name>everyone
/warps, /warpOpen the warps menu (without the menus module: a clickable list in chat)brita.warps.useeveryone
/setwarp <name>Create a warp where you stand, or move it therebrita.warps.setoperators
/delwarp <name>Delete a warpbrita.warps.deleteoperators

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​

SettingWhat it doesDefault
enabledSwitches the warp commands on or offtrue
permissionPerWarpEvery warp needs brita.warp.<name> (LuckPerms: brita.warp.* for all). Without LuckPerms only operators have them. Locked warps are left out of /warpsfalse
menuThe menu file /warps opens; empty: a clickable list in chatwarps
waitSeconds, cooldownSecondsSeconds to stand still before the teleport, and before the next one0

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.