# 快捷绑定

## 配置

{% code title="settings.yml" %}

```yaml
Shortcuts:
  Offhand: []
  Sneaking-Offhand:
    - condition: 'perm *trmenu.shortcut'
      execute: 'open: Example'
      deny: 'return'
  Right-Click-Player: 'open: Profile'
  Sneaking-Right-Click-Player: [ ]
  PlayerInventory-Border-Left: [ ]
  PlayerInventory-Border-Right: [ ]
  PlayerInventory-Border-Middle: [ ]
```

{% endcode %}

## 类型

* 切换副手 OFFHAND
* 蹲下 + 切换副手 SNEAKING\_OFFHAND
* 右键玩家 RIGHT\_CLICK\_PLAYER
* 蹲下 + 右键玩家 SNEAKING\_RIGHT\_CLICK\_PLAYER
* （生存模式下）点击玩家背包外界 PLAYER\_INVENTORY\_BORDER\_LEFT/RIGHT/MIDDLE

## 注意

* 当 **动作组** 执行结果为 true，将会取消这个事件（例如切换副手）
* 为防止干扰游戏体验，所有 \[蹲下 + 操作] 的快捷组合需要在 **1.5s** 内完成才能触发
* 右键玩家的快捷方式将默认传入菜单参数为目标玩家的名称
* 在右键玩家的快捷动作中，支持使用 `{0}` 变量代表被点击的玩家名称


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hhhhhy.gitbook.io/trmenu-v3/usage/shortcuts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
