Skip to content
On this page

猹の变量

配置文件

yml
############################
#         验证密钥          #
############################
apiKey: "apiKey"
############################
#         数 据 库          #
############################
database:
  schema: "cha_plugin"
  # mysql数据库账号密码
  username: "root"
  password: "root"
  # mysql数据库地址端口
  host: "localhost"
  port: "3306"
  share: true
############################
#         系统设定          #
############################
value:
  体力值:
    # 基础值上限
    base:
      # 无权限判断值
      - "100"
      # 权限:值
      # 当多个权限满足时,取排序最后面的值
      - "vip1:120"
      - "vip2:150"
    # 值最终上限
    max:
      - "1000"
      - "vip1:2000"
    # 值最终下限
    min:
      - "0"
    # PAPI返回值的格式,f表示浮点数,d表示整形,s表示字符串,其中表示浮点数的f需要前面加.x表示保留X位有效数字
    format: "%.2f"
    # 值恢复(可选),数值:间隔(tick),删除该行可以阻止值自然恢复
    regen: "1:1"
    # 值重置(可选),删除该行可以阻止值重置
    #  CRON表达式 CRON生成器见官网
    # http://wiki.fcwqmc.cn/user-center/cron-generator.html
    # 【例】每日0点重置
    reset: "0 0 0 * * ? *"
  系统值:
    # 系统值全服通用非绑定玩家
    system: true
    default: 0
    base:
      - "100"
    max:
      - "1000"
    min:
      - "0"
    format: "%.0f"
  前缀:
    # 默认type为数字
    # type为string时有效字段 [default]
    type: string
    system: false
    default: "新人"
    format: "%s"