Skip to content
On this page

猹の修炼

⚙️ 配置文件

yml
############################
#         验证密钥          #
############################
apiKey: "请输入CDKey"
############################
#          数据库           #
############################
database:
  schema: "cha_plugin"
  # mysql数据库账号密码
  username: "root"
  password: "root"
  # mysql数据库地址端口
  host: "localhost"
  port: "3306"
############################
#        系统设定            #
############################
# 修炼设定
enable:
  # 修炼时是否可以移动
  move: false
  # 修炼时是否可以交互
  interact: false
  # 修炼时是否可以使用指令
  command: false
# 指定等级配置增加经验
levelId: "默认"
# 功法区域设置
area:
  # 参数格式 "<世界名> <X轴范围> <Y轴范围> <Z轴范围>"
  - "world 1~10 60~70 1~10"
  # 支持一个世界多条区域
  - "world 90~100 90~100 90~100"
  # 支持多个世界
  - "world_nether 1~10 60~70 1~10"
# 检查萌芽或龙核槽位设置
# 槽位识别前缀
slotLore: "修炼经验:"
# 槽位ID
slot:
  - "germplugin_slot_1"
############################
#        修炼设定            #
############################
# 功法
# 每日上限(分钟),可以自定义修改
# 默认兼容 渡劫->境界 可自动适配对应境界上限
max:
  default: 60
  炼体期: 70
  筑基期: 80
# 每分钟EXP公式
exp: "10"
# 修炼前执行指令,可以执行多个
# 当需要执行有权限限制的指令时需要带 console: 或 op:,支持PAPI
preDos:
  - "spawn"
  - "op:say %player_name% 开始修炼了"
# 修炼结束执行指令,可以执行多个
endDos:
  - "op:say %player_name% 结束了"

🌐 语言文件

yml
out-area: "不在指定区域,不能开始修炼"
on-start: "开始修炼!"
on-end: "修炼结束!"
on-move: "修炼中,不能移动!"
on-cmd: "修炼中,不能使用命令!"
on-interact: "修炼中,不能交互!"
on-max: "已经修炼到今日上限"