Teleport requests
Module tpa. Prices need the economy module. Settings file: tpa.toml.
Commands
| Command | What it does | Permission | Default |
|---|---|---|---|
/tpa <player> | Ask to teleport to a player | brita.tpa.use | everyone |
/tpahere <player> | Ask a player to teleport to you | brita.tpa.here | everyone |
/tpaccept [player], /tpdeny [player] | Accept or deny the newest request, or the one from that player | brita.tpa.accept | everyone |
/tpcancel [player], /tpacancel [player] | Take back your newest request, or the one to that player | brita.tpa.use | everyone |
/tptoggle | Switch receiving teleport requests off or on (saved) | brita.tpa.toggle | everyone |
How it works
- The other player gets the request in chat with clickable [Accept] and [Deny] buttons, or types
/tpacceptor/tpdeny. - Sending again to the same player replaces the open request.
- On accepting, the player who moves goes to where the other one stands at that moment.
- Players who switched requests off with
/tptogglecannot get any; the choice is saved inbritaessentials-tpa.jsonin the world folder. - Open requests end when a player leaves or the server stops.
Settings
| Setting | What it does | Default |
|---|---|---|
enabled | Switches the request commands on or off | true |
requestSeconds | Seconds a request stays open; both players are told when it expires (5 to 3600) | 60 |
waitSeconds, cooldownSeconds | Seconds the player who moves stands still before the teleport, and before the next one | 0 |
Prices
In economy.json under costs, always paid by the player who asked, on arrival: "tpa" for /tpa,
"tpahere" for /tpahere. The price is checked when the request is sent.