Skip to content

服务端配置

服务端热键配置位于:

/plugins/Behemiron/hotkeys/*.yml

配置包含两部分:contextsbindings

1. contexts

yml
contexts:
  gameplay:
    # 优先级(越大越先触发)
    priority: 10
  • priority:上下文默认优先级。

2. bindings

yml
bindings:
  skill_dash:
    # 绑定所属上下文
    context: gameplay

    # 热键模式(必填)
    pattern: "W, W"

    # 触发类型: press / release / hold
    trigger: press

    # 命中后是否阻止继续传递
    consume: true

    # 连招最大间隔(毫秒)
    sequenceIntervalMs: 320

    # 按住触发阈值(毫秒)
    holdMs: 300

    # 冷却(毫秒)
    cooldownMs: 500

    # 优先级(默认继承 context.priority)
    priority: 10

    # 执行动作(Kether 脚本)
    action: |-
      anim trigger dash start

action 等价于 script,可写为单行或多行列表。

3. pattern 语法

  • 连招:逗号分隔
    • "W, W"
  • 组合键:加号
    • "CTRL+K"
  • 按住@毫秒
    • "F@300"

4. 注意事项

  • context 不存在时会报警,但仍会加载。
  • pattern/keys 为空会被忽略。