Skip to content

Latest commit

 

History

History
178 lines (125 loc) · 3.13 KB

File metadata and controls

178 lines (125 loc) · 3.13 KB

Configuration Guide

All configuration options are found in plugins/Currencies/config.yml. The file is generated automatically on first run.


version

Type: string Default: (set automatically) Description: The plugin version. This value is managed automatically and should not be changed manually.


database.url

Type: string Default: jdbc:h2:./medieval_factions_db;AUTO_SERVER=true;MODE=MYSQL;DATABASE_TO_UPPER=false Description: The JDBC connection URL for the database. By default an embedded H2 database is used. Change this to a MariaDB/MySQL URL to use an external database.

Example (MariaDB):

database:
  url: 'jdbc:mariadb://localhost:3306/currencies'
  dialect: 'MARIADB'
  username: 'currencies_user'
  password: 'secret'

database.dialect

Type: string Default: H2 Description: The SQL dialect to use. Supported values: H2, MARIADB.


database.username

Type: string Default: sa Description: The database username.


database.password

Type: string Default: (empty) Description: The database password.


coinpurse.slots

Type: integer Default: 54 Description: The number of inventory slots in a player's coinpurse. Must be a multiple of 9 and no greater than 54.

Example:

coinpurse:
  slots: 27

currencies.showAmountMinted

Type: boolean Default: true Description: When true, the amount minted is shown to the player after a successful mint operation.

Example:

currencies:
  showAmountMinted: false

currencies.powerCostEnabled

Type: boolean Default: true Description: When true, minting a currency costs faction power.

Example:

currencies:
  powerCostEnabled: false

currencies.powerCost

Type: integer Default: 1 Description: The amount of faction power deducted per mint operation. Only relevant when powerCostEnabled is true.

Example:

currencies:
  powerCost: 2

currencies.itemCostEnabled

Type: boolean Default: true Description: When true, minting a currency requires an item cost (configured per currency).

Example:

currencies:
  itemCostEnabled: false

currencies.disallowCrafting

Type: boolean Default: true Description: When true, currency items cannot be used in crafting recipes.

Example:

currencies:
  disallowCrafting: false

currencies.disallowSmelting

Type: boolean Default: true Description: When true, currency items cannot be smelted in a furnace.

Example:

currencies:
  disallowSmelting: false

currencies.disallowPlacement

Type: boolean Default: true Description: When true, currency items cannot be placed as blocks in the world.

Example:

currencies:
  disallowPlacement: false

currencies.disallowAnvilUsage

Type: boolean Default: true Description: When true, currency items cannot be combined or renamed in an anvil.

Example:

currencies:
  disallowAnvilUsage: false