配置所在位置 config\invsync\invsync.conf
- global {
- # 等待其它服务器完成读入写入数据最大时间
- # 以毫秒为单位
- global {
- # 等待其它服务器完成读入写入数据最大时间
- # 以毫秒为单位
- # 如果同步失败,请增大数字
- maxWait=1000
- }
- # 同步类型
- synchronize {
- enableInventory=true
- enableEnderChest=true
- enableGameMode=true
- enableExperience=true
- enableHealth=true
- enableHunger=true
- enablePotionEffects=true
- }
- storage {
- # 选择存储方式
- # 选择:h2 或 mysql
- storageEngine="h2"
-
- # 存储方式h2的设置
- h2 {
- # 将存储文件存在哪里,可以选择相对路径或绝对路径
- # 如果在多台服务器同步使用时,推荐使用绝对路径
- databaseFile="inventoryStorage.db"
- }
-
- # 存储方式mysql的设置
- MySQL {
- # 数据库IP
- host="localhost"
- # 数据库端口
- port=3306
- # 数据库名
- database="invsync"
- # 数据库用户
- user="invsync"
- # 数据库密码
- password="sup3rS3cur3Pa55w0rd!"
- # 数据库表前缀
- tablePrefix="invsync_"
- }
- }
复制代码
|