Skip to content
On this page

猹の社交

配置文件

yml
############################
#         系统设定           #
############################
apiKey: "请输入CDKey"
database:
  schema: "cha_plugin"
  # mysql数据库账号密码
  username: "root"
  password: "root"
  # mysql数据库地址端口
  host: "localhost"
  port: "3306"
  share: true
############################
#         好友栏            #
############################
friend:
  search:
    # 是否开启在打开添加好友页面时就列出所有玩家(关闭会减少部分服务器占用)
    enableSearchOnOpen: true
    # 是否开启在每次输入时就搜索玩家(关闭会减少部分服务器占用)
    enableSearchOnInput: true
  # 好友上限,设为-1无上限
  limit: 20
############################
#          聊天窗           #
############################
# 聊天消息清理
messageExpire:
  # 大于7天的聊天记录会被自动清理,设为-1不清理(过多的聊天记录会导致卡顿)
  dayLength: 7
############################
#         头像装饰          #
############################
head:
  # 默认头像,请勿移除default节点
  # 龙核路径格式为 path: "gui/friend/head_image/default.png"
  # 萌芽路径格式为 path: "local<->textures/gui/friend/head_image/default.png"
  default:
    # 头像路径
    path: "local<->textures/gui/friend/head_image/default.png"
    # 头像介绍
    info:
      - "默认头像介绍"
    # 是否在玩家未拥有时也展示头像
    display: true
  h1:
    path: "local<->textures/gui/friend/head_image/49.png"
    perm: "sns.head_frame.1"
    info:
      - "头像1介绍"
    display: true
  h2:
    path: "local<->textures/gui/friend/head_image/50.png"
    perm: "sns.head_frame.test"
    info:
      - '测试权限头像'
      - '当玩家拥有权限节点的对应权限时获取'
    display: false
frame:
  # 默认头像框,请勿移除default节点
  # 龙核路径格式为 path: "gui/friend/head_frame/default.png"
  # 萌芽路径格式为 path: "local<->textures/gui/friend/head_frame/default.png"
  default:
    # 头像框路径
    path: "local<->textures/gui/friend/head_frame/default.png"
    # 头像框介绍
    info:
      - '默认头像框介绍'
    # 是否在玩家未拥有时也展示头像框
    display: true
  f1:
    path: "local<->textures/gui/friend/head_frame/1.png"
    info:
      - "头像框1介绍"
    display: true
  f2:
    path: "local<->textures/gui/friend/head_frame/2.png"
    info:
      - "头像框2介绍"
    display: true
  f3:
    path: "local<->textures/gui/friend/head_frame/3.png"
    info:
      - "头像框3介绍"
    display: true
  f4:
    path: "local<->textures/gui/friend/head_frame/4.png"
    info:
      - "头像框4介绍"
    display: true
  f5:
    path: "local<->textures/gui/friend/head_frame/5.png"
    perm: "sns.head_frame.1"
    info:
      - '测试权限头像框'
      - '当玩家拥有权限节点的对应权限时获取'
    display: true
############################
#          好感度           #
############################
favor:
  # 礼物
  gift:
    # 礼物名称:好感度加成 (模糊匹配)
    # 物品名模糊匹配,赠送后双方会获得配置的好感度加成
    - "礼物1:10"
    - "礼物2:20"
    - "礼物3:30"
  # 好感度奖励
  reward:
    # 好感度到达100执行指令(双方)
    100:
      - "say {player}和{friend}的好感度到达100"
    # 好感度到达999执行指令(双方)
    999:
      - "say {player}和{friend}的好感度到达999"
      - "give {player} DIAMOND 1"
      - "give {friend} DIAMOND 1"
  # 称号
  title:
    # 当玩家与某玩家达到指定好感度时会显示的称号
    0: "萍水相逢"
    100: "泛泛之交"
    999: "永结同心"

语言文件

yml
add-null: "玩家不存在"
add-self: "无法添加自己为好友"
add-reach-limit: "已经达到好友上限,无法继续添加好友"
add-block: "你已将对方拉黑,无法添加为好友"
add-twice: "你已发送好友请求,请勿重复发送"
add-already: "对方已经是你的好友了"
add-blocked: "对方已将你拉黑,无法添加为好友"
add-success: "已发送好友请求"
request-new: "%chasns_friend_name% 向你发送了一条好友请求"
request-reach-limit: "已经达到好友上限,无法接收好友请求"
request-other-reach-limit: "对方已经达到好友上限,无法接收好友请求"
request-accept: "对方已接受你的好友请求"
request-confirm: "好友添加成功"
request-deny: "已拒绝请求"
main-friend: "您的好友:%chasns_friend_online%/%chasns_friend_total%"
chat-title: "与%chasns_friend_name%的聊天"
chat-new: "你收到来自 %chasns_friend_name% 的新消息"
friend-offline: "§c朋友不在线"
gift-give-success: "§a赠送礼物成功!"
gift-receive-success: "§a你收到了来自 {friend} 的礼物 {gift} !"
set-head-no-perm: "§c你没有该头像权限"
set-head-success: "§a设置头像成功!"
set-frame-no-perm: "§c你没有该边框权限"
set-frame-success: "§a设置边框成功!"
# 萌芽界面自定义公式
add-item-x: "w*0.22*({index} %% 2)"
add-item-y: "h*0.08*floor({index} / 2)"
blacklist-item-x: "w*0.22*({index} %% 2)"
blacklist-item-y: "h*0.08*floor({index} / 2)"
change-frame-item-x: "w*0.05*(%d %% 9)"
change-frame-item-y: "h*0.1*floor(%d / 9)"
change-head-item-x: "w*0.05*(%d %% 9)"
change-head-item-y: "h*0.1*floor(%d / 9)"
chat-item-y: "h*0.08*(%d / 2)"
main-item-x: "w*0.22*(%d %% 2)"
main-item-y: "h*0.08*floor(%d / 2)"
request-item-x: "w*0.22*(%d %% 2)"
request-item-y: "h*0.08*floor(%d / 2)"
special-item-x: "w*0.22*(%d %% 2)"
special-item-y: "h*0.08*floor(%d / 2)"
# 龙核界面自定义公式
list_scroll_height: "1"
list_scroll_range: "0.2"
main-bg-x: "list_scroll_bg.x + w*0.22*({index} % 2) + 0"
main-bg-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} + h*0.08*floor({index} / 2) + 1 + 0"
main-head-x: "list_scroll_bg.x + w*0.22*({index} % 2) + w*0.003"
main-head-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} + h*0.08*floor({index} / 2) + 1 + h*0.01"
main-frame-x: "list_scroll_bg.x + w*0.22*({index} % 2) + w*0.003"
main-frame-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} + h*0.08*floor({index} / 2) + 1 + h*0.01"
main-info-x: "list_scroll_bg.x + w*0.22*({index} % 2) + w*0.01+h*0.05"
main-info-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} + h*0.08*floor({index} / 2) + 1 + 1"
main-button-group-1-x: "list_scroll_bg.x + w*0.22*({index} % 2) + w*0.16"
main-button-group-1-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} + h*0.08*floor({index} / 2) + 1 + h*0.0"
main-button-group-2-x: "list_scroll_bg.x + w*0.22*({index} % 2) + w*0.16"
main-button-group-2-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} + h*0.08*floor({index} / 2) + 1 + h*0.04"
add-state-bg-x: "list_scroll_bg.x + w*0.22*({index} % 2) + w*0.118"
add-state-bg-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} + h*0.08*floor({index} / 2) + 1 + h*0.0+1"
add-state-x: "list_scroll_bg.x + w*0.22*({index} % 2) + w*0.12"
add-state-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} + h*0.08*floor({index} / 2) + 1 + 1"
add-button-center-x: "list_scroll_bg.x + w*0.22*({index} % 2) + w*0.16"
add-button-center-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} + h*0.08*floor({index} / 2) + 1 + h*0.02"
change-head-icon-x: "list_scroll_bg.x + w*0.05*({index} % 9)+w*0.01"
change-head-icon-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} +h*0.1*floor({index} / 9)+1+h*0.01"
change-head-button-x: "list_scroll_bg.x + w*0.05*({index} % 9)+w*0.006"
change-head-button-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} +h*0.1*floor({index} / 9)+1+h*0.07"
change-frame-icon-x: "list_scroll_bg.x + w*0.05*({index} % 9)+w*0.01"
change-frame-icon-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} +h*0.1*floor({index} / 9)+1+h*0.01"
change-frame-button-x: "list_scroll_bg.x + w*0.05*({index} % 9)+w*0.006"
change-frame-button-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} +h*0.1*floor({index} / 9)+1+h*0.07"
chat-label-y: "list_scroll_bg.y - list_scroll_slider.distanceY * {list_scroll_height} + h*0.04*floor({index} / 2) + 1 + 0"