Skip to main content

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​

CommandWhat it doesPermissionDefault
/pwarp, /pwarpsOpen the player warps menu (without the menus module: a clickable list in chat)brita.pwarps.useeveryone
/pwarp <name>Teleport to a player warpbrita.pwarps.useeveryone
/pwarp set <name>Create a player warp where you stand; the held item becomes its iconbrita.pwarps.seteveryone
/pwarp edit <name>Open the edit menu of your warpbrita.pwarps.useeveryone
/pwarp delete|move|icon <name>Delete your warp, move it here, or use the held item as its iconbrita.pwarps.useeveryone
/pwarp desc|rename|price <name> [value]Change the description, name or visit price; without a value an anvil opens to type itbrita.pwarps.useeveryone
/pwarp category <name> [category|none]Put your warp into a category; without one into the next categorybrita.pwarps.useeveryone
/pwarp list [category]Show the warps of one category, or allbrita.pwarps.useeveryone
/pwarp categoriesOpen the category page (without menus: the categories in chat)brita.pwarps.useeveryone
/pwarp sort [rating|visits|newest|name]Change the order of the list; without one the next orderbrita.pwarps.useeveryone
/pwarp rate <name> [1 to 5]Rate a warp that is not yours; without stars the rating menu opensbrita.pwarps.useeveryone
Edit and delete every player's warpsbrita.pwarps.adminoperators

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​

SettingWhat it doesDefault
enabledSwitches /pwarp on or offtrue
maxWarpsHow many warps a player may create; -1: no limit1
maxVisitPriceThe highest price an owner may ask per visit, in the main currency; 0: owners cannot ask for money0.0
descriptionLengthThe longest description, in characters60
claimsWarps can only be created or moved where the player may build (see below)true
menu, editMenuThe menu files of /pwarp and of /pwarp editpwarps, pwarp-edit
categoriesThe categories owners can choose, in the order of the category page; [] switches them offshops, farms, builds, games, other
defaultCategoryThe category of a new warp; empty: noneother
sortThe order of the list until a player picks another: RATING, VISITS, NEWEST or NAMERATING
categoryMenu, rateMenuThe menu files of the category page and of the rating menupwarp-categories, pwarp-rate
waitSeconds, cooldownSecondsSeconds to stand still before the teleport, and before the next one0

A rank gets its own limit with the LuckPerms meta brita-max-pwarps:

/lp group vip meta set brita-max-pwarps 3

In /pwarp (menus/pwarps.json):

ClickDoes
Left clickTeleport to the warp
Right clickOpen the rating menu
Shift + right click on your own warpOpen its edit menu
BookshelfOpen the category page
HopperChange 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 in menus/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 RATING sorts 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" under costs in economy.json is paid when a warp is created, "pwarp" per visit to the server.
  • An owner's own price (/pwarp price, up to maxVisitPrice) 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.