Skip to content
On this page

猹引擎

基础配置

基础配置包含两类文件:

  1. 引擎主配置。
  2. 提示语配置。

文件位置

txt
plugins/ChaEngine/config.yml
plugins/ChaEngine/lang.yml

config.yml

yml
############################
#          数据库           #
############################
redis:
  # Redis 地址
  host: 127.0.0.1
  # Redis 端口
  port: 6379
  # Redis 库序号
  db: 0

############################
#         系统设定          #
############################
# UI 全局参数
ui:
  # 页面帧率
  frame-rate: 30

lang.yml

yml
# 重载提示
command-reload-success: "ChaEngine 重载完成。"

# 通用错误
command-player-not-found: "玩家不存在或不在线:{player}"
command-model-id-not-found: "未找到模型ID:{id}"

# 方块模型相关提示
command-block-get-success-self: "已获取模型方块,ID:{id}"
command-block-get-success-other: "已给予 {player} 模型方块,ID:{id}"
command-block-get-failed: "获取模型方块失败,ID:{id}"
command-block-set-success-at: "已将位置 {location} 设置为模型ID:{id}"
command-block-set-invalid-location: "位置格式错误,请使用 world,x,y,z:{location}"
command-block-set-not-carrier-at: "位置 {location} 不是载体方块(player_head)。"
command-block-set-failed-at: "设置位置 {location} 失败,ID:{id}"
command-block-animation-play-success: "已在位置 {location} 播放动画:{animation}"
command-block-animation-stop-success: "已停止位置 {location} 的动画。"
command-block-animation-invalid: "动画名无效:{animation}"

# 实体模型相关提示
command-entity-not-found: "未找到实体:{entity}"
command-entity-animation-play-success: "已对实体 {entity} 播放动画:{animation}"
command-entity-animation-stop-success: "已停止实体 {entity} 的特殊动画。"
command-entity-animation-invalid: "动画名无效:{animation}"
command-entity-model-id-not-found: "未找到实体模型ID:{id}"
command-entity-model-set-success: "已将实体 {entity} 设置为模型ID:{id}"
command-entity-model-clear-success: "已清除实体 {entity} 的强制模型。"
command-entity-model-set-failed: "设置实体 {entity} 模型失败,ID:{id}"
command-entity-model-clear-failed: "清除实体 {entity} 模型失败。"

# UI 页面相关提示
command-ui-id-not-found: "未找到页面ID:{id}"
command-ui-open-success-self: "已打开页面:{id}"
command-ui-open-success-other: "已为 {player} 打开页面:{id}"
command-ui-open-failed: "打开页面失败:{id}"
command-ui-close-success-self: "已关闭页面:{id}"
command-ui-close-success-other: "已为 {player} 关闭页面:{id}"
command-ui-close-failed: "关闭页面失败:{id}"