“社区:TrMenu:公益配置:第一章:第一节”的版本间的差异
来自Purtmars Wikipedia —— 普特莫斯维基
第2行: | 第2行: | ||
== Configurations == | == Configurations == | ||
<br> | <br> | ||
− | + | === '''<big>settings.yml</big>''' === | |
− | '''快捷键模块''' | + | * '''快捷键模块''' |
:<small>按下对应按键执行动作反应</small> | :<small>按下对应按键执行动作反应</small> | ||
<syntaxhighlight lang="yaml" line="line"> | <syntaxhighlight lang="yaml" line="line"> | ||
第29行: | 第29行: | ||
PlayerInventory-Border-Middle: [ ] | PlayerInventory-Border-Middle: [ ] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | '''注册命令模块''' | + | * '''注册命令模块''' |
:需要重启服务器 | :需要重启服务器 | ||
::<small>可注册带有参数的指令</small> | ::<small>可注册带有参数的指令</small> | ||
第54行: | 第54行: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | <br> | ||
+ | === '''<big>menus</big>''' === | ||
+ | * 可自定义创建无数个菜单配置 | ||
+ | * 配置间跳转可以传递参数 | ||
+ | ===== 公益配置 ===== | ||
+ | # [[:File:trmenu公益配置.yml|公益配置V1.x]] |
2021年5月29日 (六) 17:25的版本
<-返回社区首页
目录
- 公益配置
- 系统商城
- 配置说明
Configurations
settings.yml
- 快捷键模块
- 按下对应按键执行动作反应
Shortcuts:
# 副手键
Offhand: 'open: Example'
# 潜行+副手键
Sneaking-Offhand:
# 条件
- condition: 'perm *trmenu.shortcut'
# 反应
execute: 'open: Example'
# 条件未达到的反应
deny: 'return'
# 右键玩家
# 菜单内第一个默认参数({0})为对方玩家ID,下同
Right-Click-Player: 'open: Profile'
# 潜行+右键玩家
Sneaking-Right-Click-Player: [ ]
# 左键点击生存背包以外的区域
PlayerInventory-Border-Left: [ ]
# 右键点击生存背包以外的区域
PlayerInventory-Border-Right: [ ]
# 中键点击生存背包以外的区域
PlayerInventory-Border-Middle: [ ]
- 注册命令模块
- 需要重启服务器
- 可注册带有参数的指令
- 可以执行TrMenu及Kether
RegisterCommands:
# 主命令( 自定义 )
# 礼包领取,提供者: 劫( QQ:1503745098 )
Gift:
aliases: [ pack ]
permission: null
execute:
- 'tell: &f输入 &cGift help &f获取帮助'
arguments:
help:
- 'tell: &fGift \n &f获得礼包'
default: |-
if all [ not perm *default.kit check papi *%player_empty_slots% >= *1 ]
then {
command papi *"give %player_name% diamond 5" as op
command papi *"lp u %player_name% p set default.kit" as console
} else {
tell *你背包没有足够的空间领取礼包或者你已领取过该礼包
}
- 可自定义创建无数个菜单配置
- 配置间跳转可以传递参数