Configuration¶
This page describes all configuration possibilities in the DKCoins config.yml.
Location: ./plugins/DKCoins/config.yml
Index
- Currency settings
- Date format settings
- Bank account settings
- Economy provider settings
- Payment settings
- Commands settings
Currency settings¶
DKCoins currency settings.
defaultThe name of the default currency (Make sure that the configured currency exist, otherwise this can cause issues).formatCoin formatting options.patternThe java number format patterns (https://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html).separatorgroupingThe 1000 delimiter.decimalThe decimal delimiter.
Example:
currency:
default: 'Coins'
format:
pattern: '###,###.##'
separator:
grouping: ''''
decimal: '.'
Date format settings¶
How DKCoins should display date times.
formatDate formatting options.patternJava date time patterns (https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html).
Example:
date:
format:
pattern: 'dd-MM-yyyy HH:mm'
Bank account settings¶
DKCoins uses different bank accounts to
-
typeAccount type settings (DKCoins supports the creation of different account types)startAmountHow much money a newly created account should contain (configured per account type)<bankType>The amount for this type
-
userSimplified commands to transfer money from users to bank accountscreditAliasesThe configured command aliases (Multiple entries in an array can be created)<currency>The name of the currency to use (Make sure that the configured currency exist, otherwise this can cause issues).<permission>The required permission to execute the command<otherPermission>The permission to view coins of other players<commands>The command aliases<disabledWorlds>Optionally you can disable this command in certain worlds
-
paymentMoney transfer settings between bank accounts and usersminimumuserThe minimum required amount to pay to another user or bank accountallThe minimum required amount to pay to all other users or bank accounts
Example:
account: type: startAmount: User: 1000 Bank: 0 user: creditAliases: - currency: 'Coins' permission: 'dkcoins.command.coins' otherPermission: 'dkcoins.command.coins.other' commands: ['coins','money'] disabledWorlds: [] payment: minimum: user: 0.01 all: 1.0
Economy provider settings¶
With this setting you can configure how DKCoins should hook into third party economy providers (e.g. Vault).
enabledIfTrueDKCoins will hook into available providers.priorityDKCoins will use this priority to hook into the provider.currencyThe currency used for the operations performed by the provider (Make sure that the configured currency exist, otherwise this can cause issues).
Example:
economyProvider:
enabled: true
priority: 127
currency: 'Coins'
Payment settings¶
With this setting you can configure how DKCoins should hook into third party economy providers (e.g. Vault).
allaliasesDKCoins will use this priority to hook into the provider.currencyThe currency used for the operations performed by the provider (Make sure that the configured currency exist, otherwise this can cause issues).
Example:
payment:
all:
aliases: ['*']
Commands settings¶
DKCoins commands settings
You can optionally configure a coin command per currency. See more here
topCoins top command.entriesPerPageHow many entries should be displayed per page
bankThe DKCoins bank commandenabledIfTruethe command is enabled and can be used.nameThe name of the command.permissionThe required permission to use this command.aliasesAliases to execute this command.
currencyThe DKCoins currency command...
payThe DKCoins simplified pay command...
Example:
command:
permission:
enabled: true
name: 'permissions'
permission: 'dkperms.admin'
aliases: ['perms','permission','perm','dkperms']
rank:
enabled: true
name: 'rank'
permission: 'dkperms.rank'
aliases: ['ranks']
team:
enabled: true
name: 'team'
permission: 'dkperms.team'
aliases: []