Skip to main content
Dan's Plugins Community
All guidesCurrencies plugin page

Currencies Guide

0

User Guide

Prerequisites

First Steps

After installing Currencies and restarting your server:

  1. Ensure you are a member of a faction in Medieval Factions.
  2. Hold the item you want to use as the currency's coin, then use /currency create <name> to create a new currency for your faction.
  3. Use /currency mint <currency> [amount] to mint coins of your currency.
  4. Minted coins arrive in your inventory. Open your coinpurse with /coinpurse and move them in to store them.

Common Scenarios

Creating a Currency

A faction leader or a player with the appropriate faction permission can create a new currency. The item held in the main hand becomes the currency's coin, so an item must be held when the command is run:

/currency create GoldCoin

If the held item's display name does not already match the currency name, a Yes/No prompt is shown instead of creating the currency straight away. Yes renames the item to match the currency, and No keeps the item's existing name. The prompt can be skipped by passing the choice up front:

/currency create GoldCoin --rename
/currency create GoldCoin --no-rename

Minting Currency

Once a currency exists, authorised faction members can mint coins. Minting costs the minting player power (configurable) and may require an item cost. The amount defaults to 1 when omitted. Minted coins are placed in your inventory, and any that do not fit are dropped at your feet. If saving the mint fails, no coins are given and any power or items taken as its cost are handed back:

/currency mint GoldCoin 10

Who Can Mint and Change a Currency

  • Creating a currency needs a faction role with the CREATE_CURRENCY faction permission. Its default is off, but when a faction is created (or, for factions that already exist, when Currencies first starts), it is granted to every role that can change the faction's name: by default only the Owner role. So only the faction owner can create currencies until it is granted to another role.
  • When a currency is created, every role of the faction that has CREATE_CURRENCY is given permission to mint, rename, describe and retire that currency. Other roles, including the default Member role, get none of these, so an ordinary member cannot mint or rename it until the owner grants their role the permission.
  • Only members of the faction that owns a currency can mint it. Members of other factions (allies included), players in no faction and server operators are refused: there is no permission that lets anyone else mint.
  • Only members of the owning faction whose role has the permission can rename a currency; members of other factions (allies included) and players in no faction are refused. A player with currencies.force.rename (server operators, by default) can rename any currency.
  • Changing a currency's description follows the same rule: only members of the owning faction whose role has the permission can do it, and a player with currencies.force.desc (server operators, by default) can describe any currency.
  • Only members of the owning faction whose role has the permission can retire a currency. There is no permission that lets anyone else retire it, server operators included. When a faction is disbanded, every currency it owns is retired automatically.
  • Players in no faction cannot create a currency, and neither can a member whose role lacks CREATE_CURRENCY.

Viewing Your Balance

Check how many coins of each currency are stored in your coinpurse:

/currency balance

Every currency on the server is listed, with retired ones marked [retired]. Coins carried in your inventory are not counted, so newly minted coins only appear here once they have been moved into your coinpurse.

Viewing Currency Information

Inspect the details of a specific currency:

/currency info <currency>

Listing Currencies

List every active currency on the server:

/currency list

The list can be filtered, and a trailing page number selects a page of results:

/currency list all
/currency list retired
/currency list MyFaction
/currency list all 2

Renaming a Currency

Rename an existing currency (requires faction permission). Leaving the new name off asks for it in a chat prompt, which can be exited by typing cancel:

/currency rename <currency> <new-name>

Only the currency's name changes. The coin item keeps its existing display name, both on coins already in circulation and on coins minted afterwards (#182).

Setting a Currency Description

Set or update the description of a currency (requires faction permission). Leaving the description off asks for it in a chat prompt, which accepts several lines of text, joined with spaces, until end is typed; typing cancel exits without saving:

/currency set description <currency> <description>

Retiring a Currency

Permanently retire a currency so it can no longer be minted (requires faction permission). A confirmation prompt is shown first; retirement only happens once it is confirmed:

/currency retire <currency>

Using Your Coinpurse

Open your coinpurse inventory to store coins and take them out:

/coinpurse

When the coinpurse is closed, the coins left in it are saved as your balance, so coins moved in are stored and coins taken out are no longer counted. Items that are not coins of a currency are dropped at your feet when it closes. If your balance does not fit in the coinpurse when it opens, the coins that do not fit are dropped at your feet.

Permissions

PermissionDefaultDescription
currencies.coinpursetrueAllows opening your coinpurse
currencies.balancetrueAllows viewing your balance
currencies.createtrueAllows creating currencies
currencies.listtrueAllows listing currencies
currencies.minttrueAllows minting currencies
currencies.retiretrueAllows retiring currencies
currencies.desctrueAllows setting the description of currencies
currencies.force.descopAllows setting the description of currencies without being a member of the faction or having the faction permission
currencies.renametrueAllows setting the name of currencies
currencies.force.renameopAllows setting the name of currencies without being a member of the faction or having the faction permission
Back to topCurrencies plugin pageView this guide on GitHub