A simple coin plugin that can be used as game currency.
Version 1.3 supports folia and bungee core
Optional dependencies:
PlaceholderAPI
Vault[selectable]
PlaceholderAPI variable
%coins_balance% Displays the player's coin count
Instruction introduction:
/coins
/coins me View balance
/coins add <player> <quantity>
Give players the number of coins!
/coins remove <player> <quantity>
Deduct the number of player coins!
/coins set <player> <quantity>
Transfer coins to the player.
/coins pay <player> <quantity>
Set the number of player coins.
/coins reload Plug-in overloading
Permission setting:
coins.admin.* Have full access
coins.user Check balance
coins.admin.add Give coin
coins.admin.take Take the coin
coins.admin.set Set a coin
coins.admin.pay Transfer coins to the player
coins.admin.reload Plug-in overloading
Code (YAML):
#语言文件
#en英文,zh_cn中文
#Language files
#en English、zh_cn Chinese
language
: en
#prefix
#前缀
Prefix
: '&6 Coins >>'
data
:
#Storage method:
# English:
# MySQL : HikariCP connection pooling is used, which can only be run with versions of Java 11 and above. HikariCP connection pooling is used, which can effectively prevent connection timeouts.
# IWantMySQL : With native MySQL connections, it can be run using Java8, which has the disadvantage of easy connection timeouts.
# SQLite : Local database storage, unordered configuration of addresses, ports, accounts, passwords, and other configurations.
# Chinese:
# MySQL : 使用了HikariCP连接池,只能使用Java11及以上版本运行。使用了HikariCP连接池,可以有效防止连接超时
# IWantMySQL: 原生态连接方式,可使用Java8运行,缺点较容易连接超时。
# SQLite : 本地数据库文件存储,无序配置连接信息
method
: sqlite
#Database connection address(数据库连接地址)
address
: '127.0.0.1'
#Database port(数据库端口)
port
: 3306
#Database name(数据库名)
database
: 'coins'
#Database user name(数据库用户名)
username
: 'root'
#Database password(数据库密码)
password
: '123456'
#Database useSSL(数据库useSSL)
useSSL
: false
#Connection pooling(连接池)
HikariCP
:
#Connection timeout Default value: 30000 (30 seconds)(连接超时时间 默认值:30000(30秒))
connectionTimeout
: 30000
#Minimum number of idle connections(最小空闲连接数)
minimumIdle
: 10
#The maximum size allowed for the pool, including idle and in-use connections(池允许达到的最大大小,包括空闲和正在使用的连接)
maximumPoolSize
: 50
#Here you can enable Vault to make this plugin manage all the Vault transactions.
Vault
:
#Enable or not
#是否启用
enable
: false
# Names used by vault for the currency.
# vault为货币使用的名称。
singular-name
: 'Coins'
plural-name
: 'Coins'
#Set up(设置)
Settings
:
#Set so the player's initial balance(设置所以玩家初始余额)
Initial_balance
: 0