配置文件
主要配置文件及其食用方法
配置文件 config.yml
# |------------------------------------------------------------------------
# | CommandPanels 配置文件
# | By RockyHawk v5.2
# | 汉化: inuEbisu
# | Spigot MC: https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
# | MCBBS: https://www.mcbbs.net/thread-1412767-1-1.html
# | 强烈建议开启自动更新 (auto-update) 与 小更新 (minor-updates-only)
# |------------------------------------------------------------------------
config:
# 如果为 true,面板中的 Placeholder 会自动刷新
# 改动后需要重启服务器
refresh-panels: true
# 如果不需要 /cpb 指令,禁用以优化性能
# 改动后需要重启服务器
panel-blocks: true
# 该项为 false 时禁用游戏内编辑器
# 改动后需要重启服务器
ingame-editor: true
# 该项为 false 时禁用快捷栏物品
# 改动后需要重启服务器
hotbar-items: true
# 该项为 false 时禁用自定义命令
# 改动后需要重启服务器
custom-commands: true
# 该项为 false 时,禁止插件自动注册面板自定义的命令
# 先前已经注册了的自定义命令不会从 command.yml 中删除
auto-register-commands: true
# 该项为 true 时,打开的面板会随文件的更新而自动更新
# 启用时,如果某些以 CommandPanels 为依赖的插件未将其面板与文件相联系,则可能会出问题
auto-update-panels: false
# 自动刷新的周期(单位:游戏刻)(20 游戏刻 = 1 秒)
refresh-delay: 20
# Placeholder %cp-server-<IP>:<PORT>% 的连接超时判定时间。(单位:毫秒)
# 译者注:使用该 Placeholder 时,若指定服务器的 ping 值大于该值,则判定该服务器离线。
# 对于本地网络,填 10 就好。不建议大于 500 的值。
# 该值过低可能会导致错误的负面结果;该值过高可能会导致延迟卡顿
server-ping-timeout: 10
# 面板关闭时是否停止 "sound-on-open" 声音
stop-sound: true
# 玩家试图在被禁用面板的世界中打开面板时,插件是否发送提示消息
disabled-world-message: true
# 该值为 false 时,您不会收到更新提示
update-notifications: true
# 该值为 true 时,玩家打开或关闭面板时,控制台会向其发送消息
panel-snooper: false
format:
# 提示消息前缀
tag: '&6[&bCommandPanels&6] '
# 没有权限时的提示消息
perms: '&c您没有权限。'
# 重载插件的提示消息
reload: '&a插件重载成功。'
# 面板不存在时的提示消息
nopanel: '&c面板不存在。'
# 面板中没有用于打开的物件
noitem: '&c面板中没有可点击的物件。'
# 找不到玩家时的提示消息
notitem: '&c找不到该玩家。'
# 默认的错误代码消息
error: '&c配置文件中存在错误:'
# 当玩家离线时,Placeholder %cp-player-online-1-find% 返回的玩家名
offline: Offline
# 当玩家离线时,Placeholder %cp-player-online-1-find% 返回的头部值
offlineHeadValue: eyJ0ZXh0d...
# 根据该配置,玩家进入时如果在世界 world1 中,就自动打开面板 example
# 可以添加多个世界
# 只在玩家所处世界改变时运作
open-on-join:
world1: example
# 同上,不过是在玩家登录成功时
open-on-login:
world1: example
input:
# 当玩家取消 %cp-player-input% 的输入时,需要输入的关键词
input-cancel: cancel
# 玩家取消输入时显示的消息
input-cancelled: '&c取消输入!'
# 最大输入长度的默认值。
# 如果不需要最大值,设为 -1 即可。
max-input-length: -1
# 让玩家输入时显示的信息。
# 使用 Placeholder %cp-tag% 表示插件标签,%cp-args% 表示取消输入的关键词。
input-message:
- '%cp-tag%&a请输入。'
- '&c输入 &4%cp-args% &c以取消命令。'
# 十六进制颜色编码的格式
# 根据该配置,使用时应写成 #ff0000 的形式
# 如果设置 start_tag 为 '{#'、end_tag 为 '}',则应写成 {#ff0000} 的形式
hexcodes:
start_tag: '#'
end_tag: ''
# 选择用于 CommandPanels 内建 Placeholder 的符号
# start 参数即为 Placeholder 的第一个字符,end 参数即最后一个字符
# secondary 二级符号用于 Placeholder 中嵌套的 Placeholder(二级 Placeholder)
# 也可以将其放置于面板中,用于面板指定的自定义 Placeholder
placeholders:
primary:
start: '%'
end: '%'
secondary:
start: '{'
end: '}'
updater:
# 推荐开启,在服务器重启时自动更新
auto-update: true
# 该项为 true 时,只自动更新一些小更新(bug修复与一些小的特性)
minor-updates-only: true
# 该项为 true 时,若插件需要更新,则在加入时发送消息。
# 更改后,重启服务器以生效
update-checks: true
# 在面板中购入/售出时发送的消息
# 其中的 Placeholder %cp-args% 会被替换为金额或物品类型
purchase:
currency:
enable: true
success: '&a成功以 $%cp-args% 购入。'
failure: '&c资金不足。'
data:
enable: true
success: '&a成功以 $%cp-args% 购入。'
failure: '&c资金不足。'
tokens:
enable: true
success: '&a成功以 %cp-args% 代币购入。'
failure: '&c代币不足!'
item:
enable: true
success: '&a成功售出 %cp-args%.'
failure: '&c物品不足!'
xp:
enable: true
success: '&a成功以 %cp-args% 点经验购入。'
failure: '&c经验值不足!'插件内建面板
template.yml
example_top.yml
example_middle_one.yml
example_middle_two.yml
example_bottom.yml
Last updated