README.md
1.8 KB · sha256:42f02a98d97f535dabed2eb2298dd0449f8dfb84af6b1778d407f90d31961cd3
# @rune/warps
Create named destinations for a Paper server. Use public warps for places
like spawn and the market, and permission-gated warps for staff areas.
## Install and create a warp
```sh
rune add @rune/warps
```
Restart Paper. Stand at the destination and run `/warp set market`.
| Command | Behavior |
| --- | --- |
| `/warp` | List warps you can use. |
| `/warp <name>` | Teleport to that warp in game. |
| `/warp set <name> [restricted]` | Save current position and facing. |
| `/warp delete <name>` | Remove the named warp. |
Saving requires `rune.warps.set`. Deleting requires `rune.warps.delete`.
On Rune 0.5.2 or later, Tab lists the warps you can visit.
Set `restricted` to `true` to
allow only operators and users with `rune.warp.<name>`. Omitting it on an
existing warp preserves that warp's setting. A new warp defaults to public.
Warp names accept 1–24 letters, digits, underscores, or hyphens and normalize
to lowercase. A destination's world must be loaded.
## Storage
Use the server environment to set `RUNE_WARPS_STORAGE` to `local`,
`reuse:shared`, or `connect`. For `connect`, install the database adapter and set
`RUNE_WARPS_DB_URL`. The default keeps existing local data and otherwise prefers
an open connection when available. [Storage setup](https://github.com/Rune-MC/rune/tree/main/packages/storage#share-an-open-database-on-paper)
## Web dashboard
With `@rune/dashboard` running on Rune 0.5.3 or newer, this Rune adds
its own navigation and pages. Browse saved warps and change whether a warp requires permission.
## Dashboard
Open **Warps** in Rune Dashboard to create or move a warp using the position of an online player, change its access, delete it, or teleport a player who can access it. This page requires Rune 0.5.4 or newer and @rune/dashboard 0.1.2 or newer.