Player warps
Every player can create warps that everybody may visit, such as their shop or farm. Module playerwarps.
Its menus need the menus module, prices need the economy module. Settings files:
playerwarps.toml, menus/pwarps.json, menus/pwarp-edit.json, menus/pwarp-categories.json,
menus/pwarp-rate.json.
Commands
| Command | What it does | Permission | Default |
|---|---|---|---|
/pwarp, /pwarps | Open the player warps menu (without the menus module: a clickable list in chat) | brita.pwarps.use | everyone |
/pwarp <name> | Teleport to a player warp | brita.pwarps.use | everyone |
/pwarp set <name> | Create a player warp where you stand; the held item becomes its icon | brita.pwarps.set | everyone |
/pwarp edit <name> | Open the edit menu of your warp | brita.pwarps.use | everyone |
/pwarp delete|move|icon <name> | Delete your warp, move it here, or use the held item as its icon | brita.pwarps.use | everyone |
/pwarp desc|rename|price <name> [value] | Change the description, name or visit price; without a value an anvil opens to type it | brita.pwarps.use | everyone |
/pwarp category <name> [category|none] | Put your warp into a category; without one into the next category | brita.pwarps.use | everyone |
/pwarp list [category] | Show the warps of one category, or all | brita.pwarps.use | everyone |
/pwarp categories | Open the category page (without menus: the categories in chat) | brita.pwarps.use | everyone |
/pwarp sort [rating|visits|newest|name] | Change the order of the list; without one the next order | brita.pwarps.use | everyone |
/pwarp rate <name> [1 to 5] | Rate a warp that is not yours; without stars the rating menu opens | brita.pwarps.use | everyone |
| Edit and delete every player's warps | brita.pwarps.admin | operators |
Names are unique on the server and follow the warp rules; words of the command (set,
edit, price and so on) cannot be names. Without a held item the warp shows the icon of its world. The
warps and their visits are saved in britaessentials-pwarps.json in the world folder.
Settings
| Setting | What it does | Default |
|---|---|---|
enabled | Switches /pwarp on or off | true |
maxWarps | How many warps a player may create; -1: no limit | 1 |
maxVisitPrice | The highest price an owner may ask per visit, in the main currency; 0: owners cannot ask for money | 0.0 |
descriptionLength | The longest description, in characters | 60 |
claims | Warps can only be created or moved where the player may build (see below) | true |
menu, editMenu | The menu files of /pwarp and of /pwarp edit | pwarps, pwarp-edit |
categories | The categories owners can choose, in the order of the category page; [] switches them off | shops, farms, builds, games, other |
defaultCategory | The category of a new warp; empty: none | other |
sort | The order of the list until a player picks another: RATING, VISITS, NEWEST or NAME | RATING |
categoryMenu, rateMenu | The menu files of the category page and of the rating menu | pwarp-categories, pwarp-rate |
waitSeconds, cooldownSeconds | Seconds to stand still before the teleport, and before the next one | 0 |
A rank gets its own limit with the LuckPerms meta brita-max-pwarps:
/lp group vip meta set brita-max-pwarps 3
Menus
In /pwarp (menus/pwarps.json):
| Click | Does |
|---|---|
| Left click | Teleport to the warp |
| Right click | Open the rating menu |
| Shift + right click on your own warp | Open its edit menu |
| Bookshelf | Open the category page |
| Hopper | Change the order |
The edit menu (menus/pwarp-edit.json) changes icon, name, description, category, place and price,
teleports, and deletes with shift + right click. Its buttons use "pin": "edited" (the warp being edited),
so they can be moved to other slots. Only the owner and players with brita.pwarps.admin can change a warp.
The mod writes a menu file only when it is missing. After an update that added buttons, rename or delete the
old file and run /brita reload to get the new one.
Placeholders
In menu texts a warp has {name}, {owner}, {description}, {world}, {x}, {y}, {z}, {price},
{visits}, {category}, {rating}
(average), {stars} (such as ★★★★☆), {ratings} (how many) and {yours}. Every text of the list and the
category page has {category} (the chosen one), {sort} and {count}.
Categories and ratings
- A category's name comes from the language files (
pwarps.category.<id>; without one the id shows). Its icon can be changed by pinning it inmenus/pwarp-categories.json. - A category removed from the list keeps its warps, which then only show under all.
- Players give a warp 1 to 5 stars, once each (a new rating replaces the old one), never their own.
- The default order
RATINGsorts by average stars, then number of ratings, then name. - The chosen category and order last until the player leaves.
Money
With the economy module:
"setpwarp"undercostsineconomy.jsonis paid when a warp is created,"pwarp"per visit to the server.- An owner's own price (
/pwarp price, up tomaxVisitPrice) is paid to the owner on arrival, also while the owner is offline. - Owners visit their own warps for free, and their visits are not counted.
Claims
With Open Parties and Claims or FTB Chunks installed, a warp can only be created or moved on free land or land where the player may build, by the claim mod's own rules (party members, allies). Both are optional; nothing else is needed.
FTB Chunks lets players in spectator mode build anywhere, so they can also set warps anywhere.