settings:
#Player Chat Event listener
#Options: async, regular
#With async, you can't open back up inventories so you will need
#to switch to regular if you wish to do so however async is much faster
#than regular so beware.
#SERVER RESTART REQUIRED TO SWITCH
listener: 'async'
#Start balance
start-balance: 0.00
#Format of the numbers
format: "###,###,###,###,###.##"
#Storage Type (h2 or yml or mysql)
#MySQL is very unstable rn and i dont suggest using it.
storage: 'h2' # <----- 改成 MySQL
#Auto Save? if false data will only be saved when server stops
autosave: 'true'
mysql:
enabled: false # 改成 true
user: User
port: 3306
password: Password
host: localhost
database: Database
Settings:
#SQLite MySQL
storage-type: SQLite # <----- 改成 MySQL
#Use connection pool or not
#Require 'slf4j' dependencies
usepool: false
#Whether to disable saving data asynchronously(SQLite no such setting)
disable-async: false
#MySQL settings
MySQL:
host: localhost
port: 3306
user: root
pass: root
database: data
#auto add "_", can use %sign% to indicate Server ID (BungeeCord settings)
table-suffix: ''
property:
usessl: false
encoding: utf8
timezone: ''
allowPublicKeyRetrieval: false
特别提醒
所有插件在开启 MySQL 同时还要填写 host(ip)、port、user、pass(word)等信息,其他的不需要修改。