- Added support for the plugin to integrate a Vault economy.
- Added the possibility to store currency balance to YAML, MySQL, or MariaDB.
- Added command logic 'balance' to get the balance of a currency; can be used in commands.yml.
- Improved command complete suggestions.
- Renamed the command logic 'coins' to 'mintage', and changed the default labels to /mintage and /mint.
- Renamed and improved '/coins give (coin)' to '/mintage create (coin) (amount)'.
- Added '/mintage drop' to drop defined coins in a location.
- Renamed the currency id 'vault_balance' to 'vault' by default.
The following can be added to currencies.yml:
Code:# Settings when storage is used. Balances are not handled by Coins by default. Only if you # enable integration (per currency), it will use these settings. storage: # This connection will be used when using 'sql' as storage for a currency. sql: enabled: false # don't forget to enable if used url: 'jdbc:mysql://localhost:3306/coins' # 'coins' here is the database name username: 'root' password: 'p4ssw0rd'
The following can be added to a currency in currencies.yml:
Code:#currencies: # 'vault': # Whether this plugin should manage and store the currency. This plugin will then take # care of its storage. The storage can either be to file, or SQL. When using 'file', # balances are stored in Coins/storage/balances/{currency_id}/{player_uuid}.yml. With # SQL, additional settings (host, port, etc.) need to be configured at 'storage' at # the top of the config. integration: # Setting from 'true' to 'false' requires a server restart, to give other plugins a # chance to integrate the plugin. enabled: false storage: 'file' # or 'sql'
The following can be added to commands.yml:
Code:#commands: 'balance': # Command /balance is disabled by default, because it is usually handled by another # plugin by default. enabled: false labels: ['balance', 'money'] permission: 'coins.command.balance'
Also note that the command logic 'coins' was renamed to 'mintage', so you will have to change that command as well. This is the default now, instead of 'coins':
Code:#commands: 'mintage': enabled: true labels: ['mintage', 'mint'] permission: 'coins.command.mintage'
