资源控制
本模组专为服务器管理员和整合包制作者设计。它允许通过命令来控制用户的资源包。
本模组可以实现:
- 启用/禁用某个资源包
- 调整资源包的顺序
- 在每次执行命令后,或在多个命令连续执行后重新加载资源
命令用法:
所有命令仅对执行它们的玩家生效,但由于它们不需要管理员权限,因此 /execute as [player] run rc <command> 可用于管理员或数据包控制其他玩家。
/rc reloadall
重新加载所有资源
以下命令以可选的 [reload] 参数结尾。
如果不包含该参数,则默认为 true。此参数控制是否在命令执行后重新加载玩家资源。
或者,更改可以在下次运行 reloadall 或使用 F3+T 时生效。
/rc activate [packname] [reload]
激活文件名为 [packname] 的资源包。
Zip 文件需要指定 .zip 后缀。
示例:
/rc activate grass.zip
激活名为 "grass.zip" 的资源包(并重新加载)
/rc activate "Xray ultimate" false
激活名为 "Xray ultimate" 的资源包(文件夹)(但不立即重新加载)
/rc deactivate [packname] [reload]
与 activate 类似,但用于停用资源包。
/rc moveup [packname] [amount] [reload]
将已激活的、文件名为 [packname] 的资源包在优先级列表中向上移动 [amount] 个位置。
将 amount 设置为 0(或不指定 amount)可将其移至最顶部。
/rc movedown [packname] [amount] [reload]
与 moveup 类似,但在优先级列表中向下移动。
将 amount 设置为 0(或不指定 amount)可将其移至最底部。
/rc logpacks
将玩家运行时所找到的所有资源包记录到服务器控制台。(如果在局域网服务器上,则记录到主机日志中。)
Resource Control
This mod is designed for server owners and modpack makers. It allows the controlling of a users resource packs through commands.
This mod can:
- Turn on/off a pack
- Rearrange the pack order
- Reload resources on each command, or after multiple have been run
Command usage:
All commands only affect the player running them, but since they don't require admin /execute as [player] run rc <command> can work for admins/datapacks to control other players.
/rc reloadall
Reloads all resources
The following commands end with an optional [reload] parameter.
If not included, will be true. Controls whether the players resources should be reloaded after the command is run.
Alternatively, the changes can take effect next time reloadall is run, or F3+T is used.
/rc activate [packname] [reload]
Activates a resource pack with the filename of [packname].
Zip files will need the .zip specified.
Examples:
/rc activate grass.zip
Activates the resource pack named "grass.zip" (and reloads)
/rc activate "Xray ultimate" false
Activates the resource pack (folder) named "Xray ultimate" (and doesn't reload yet)
/rc deactivate [packname] [reload]
Same as activate but de-activates
/rc moveup [packname] [amount] [reload]
Moves the activated pack with [packname] up the [amount] in the priority list.
Set amount to 0 (or don't specify amount) to go all the way to the top.
/rc movedown [packname] [amount] [reload]
Same as moveup but moves it down in the priority.
Set amount to 0 (or don't specify amount) to go all the way to the bottom.
/rc logpacks
Logs all resource packs found (of the player its run as) to the server console.
(Or the hosts log if on a LAN server)
评论 0
登录后参与评分
还没有评论,来抢沙发吧