客户端执行
在服务器和客户端都需要安装(尽管如果仅在客户端或仅在服务器上安装,应该不会导致崩溃)
新增了一个命令 /executeclient,用于从服务器端运行仅限客户端执行的命令
语法为:/executeclient <目标> <命令>
/ 是自动包含的,例如 /executeclient @r soup:random 会运行来自 Souper Secret Settings 的 /soup:random(前提是客户端已安装该模组),而 /executeclient @p /calc 则会运行来自 WorldEdit 的 //calc。
它会像玩家亲自输入一样执行命令,因此也可以运行服务器端命令,但前提是运行该命令的玩家必须拥有该命令所需的权限等级。(该命令本身与 /execute 具有相同的权限等级)
您还可以使用 /commandlock 和 /commandunlock 来阻止玩家运行特定命令。例如,/commandlock @a me 将阻止任何人运行 /me(不过,它也会拦截 /message,因为它仅检查输入的指令是否以任意锁定的前缀开头)。重新连接后,命令锁定将被重置。
插件版本说明:
权限节点为 client_execution.executeclient,它仅对明确指定的玩家和 @a 生效——因此 /executeclient Steve soup:random 可以正常工作,但 /executeclient @p soup:random 或 /execute as Steve run executeclient @s soup:random 则不行!这是一个重要的区别!
命令锁定相关的权限节点为 client_execution.commandlock 和 client_execution.commandunlock。
Client Execution
required on both server and client (although it shouldnt crash anything if only client/only server has it)
adds a new command /executeclient for running client only commands from the server
the syntax is /executeclient <targets> <command>
the / is automatically included, eg /executeclient @r soup:random runs /soup:random from Souper Secret Settings (as long as the client has it installed), and /executeclient @p /calc would run //calc from WorldEdit
it runs the command as if the client typed it themselves, so it can also run server side commands, but only if the player running the command has the permission level needed for that command. (the command itself has the same permission level as /execute)
you can also use /commandlock and /commandunlock to stop players running specific commands. For example, /commandlock @a me will stop anyone running /me (however, it would also block a /message, since it just checks if the entered command starts with any of the locks). command locks are reset on relog
Notes for the plugin version:
the permission node is client_execution.executeclient, and it only works with specifically mentioned players and @a - so /executeclient Steve soup:random works, but /executeclient @p soup:random or /execute as Steve run executeclient @s soup:random do not! this is an important difference!
the permission nodes for command locking are client_execution.commandlock and client_execution.commandunlock
下载 Client Execution
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Client Execution
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Client Execution
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Client Execution
下载 Client Execution
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Client Execution
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Client Execution
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Client Execution
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Client Execution
下载 Client Execution
- 已更新至 26.1/2
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧