#按下按钮后执行的命令,可以多个
#The command executed after pressing the button can be multiple, you can use %player% variable instead of player name
commands:
- 'trmenu open 菜单 %player%'
#是否绕过执行上面指令的权限执行
# Whether to bypass the premission of command
asop: true
#按下按钮后是否关闭GUI
#Whether to close the GUI after pressing the button
close: true
#按下按钮后转入另一个GUI界面 (设置为 - 则不启用)
# Press the button to go to another GUI interface (set to - to disable)
to: '-'
必须要在指令 后面加个玩家名字变量,好烦。。
否则不执行
#The command executed after pressing the button can be multiple, you can use %player% variable instead of player name
commands:
- 'trmenu open 菜单 %player%'
#是否绕过执行上面指令的权限执行
# Whether to bypass the premission of command
asop: true
#按下按钮后是否关闭GUI
#Whether to close the GUI after pressing the button
close: true
#按下按钮后转入另一个GUI界面 (设置为 - 则不启用)
# Press the button to go to another GUI interface (set to - to disable)
to: '-'
必须要在指令 后面加个玩家名字变量,好烦。。
否则不执行
本帖最后由 もぺもぺ 于 2020-6-2 10:19 编辑
大概是后台执行而非玩家以 op 身份执行,而且涉及 mod 的话,直接后台执行要简单一点的。
所以你想问什么呢
想要改这里的话,大概只有作者能改吧,而且没啥必要的样子。
大概是后台执行而非玩家以 op 身份执行,而且涉及 mod 的话,直接后台执行要简单一点的。
所以你想问什么呢
想要改这里的话,大概只有作者能改吧,而且没啥必要的样子。
もぺもぺ 发表于 2020-6-2 10:17
大概是后台执行而非玩家以 op 身份执行,而且涉及 mod 的话,直接后台执行要简单一点的。
所以你想问什么 ...
我想问,这个%player% 玩家名变量必须加吗,感觉不太舒服
UnCreateds 发表于 2020-6-2 10:18
我想问,这个%player% 玩家名变量必须加吗,感觉不太舒服
因为是后台执行,就像你在后台执行 trmenu open 菜单 一样,不会有效果。
所以得加上玩家变量
もぺもぺ 发表于 2020-6-2 10:19
因为是后台执行,就像你在后台执行 trmenu open 菜单 一样,不会有效果。
奥,Vexview能不能做到,比如我点击了商城这个按钮,左下角聊天栏提示 : 您打开了商城
必须加 你把asop设为true就是以控制台身份执行trmenu open的命令= =
要么就关掉asop 给玩家自己打开trmenu菜单的权限 而且加上%player%又不会多难看..
要么就关掉asop 给玩家自己打开trmenu菜单的权限 而且加上%player%又不会多难看..
UnCreateds 发表于 2020-6-2 10:20
奥,Vexview能不能做到,比如我点击了商城这个按钮,左下角聊天栏提示 : 您打开了商城 ...
执行 msg 之类的命令不就可以了吗。
不过好像打开商城发条信息没啥意义的样子。。