Skip to content
On this page

猹の交易

配置文件

yml
############################
#         插件验证          #
############################
apiKey: "apiKey"
############################
#         全局设置          #
############################
enable:
  # 是否启用邀请交易确认界面
  invite-tip: true
  # 是否开启宝可梦交易(需要前置mod)
  pixelmon:
    enable: false
    # 宝可梦是否至少保留一只
    keep-one: true
    # 宝可梦显示名称
    name: "&r{pokemon_name}"
    # 宝可梦信息显示
    lore:
      - "&6昵称:&3{poke_name}"
      - "&6闪光:{poke_shiny} &6等级:&a{poke_level}"
      - "&6可否繁殖:{has_key_unbreedable}"
      - "&6个体值:&a{poke_ivs}"
      - "&6生命:&a{poke_ivs_hp} &6攻击:&a{poke_ivs_attack}"
      - "&6防御:&a{poke_ivs_defence} &6速度:&a{poke_ivs_speed}"
      - "&6特防:&a{poke_ivs_specialDefence} &6特攻:&a{poke_ivs_specialAttack}"
      - "&6努力值:&a{poke_evs}"
      - "&6生命:&a{poke_evs_hp} &6攻击:&a{poke_evs_attack}"
      - "&6防御:&a{poke_evs_defence} &6速度:&a{poke_evs_speed}"
      - "&6特防:&a{poke_evs_specialDefence} &6特攻:&a{poke_evs_specialAttack}"
      - "&6特性:&a{poke_ability}"
    tags: #自定义标签变量
      has_key_unbreedable: "unbreedable" #{开启后变量使用标签}
# 交易税率
tax:
  # 默认权限组
  default:
    perm: "default"
    # 每个物品收费
    item: 10
    # 金币百分比收费
    money: 0.1
    # 每个宝可梦收费(需开启宝可梦功能)
    pixelmon: 100
  vip1:
    perm: "chatrade.vip1"
    item: 1
    money: 0.05
    pixelmon: 10
# 头像路径变量
head: "%chasns_player_head%"
# 头像框路径变量
frame: "%chasns_player_frame%"
# 交易可用栏数
slots: 9
# 交易距离限制,-1为无限制
distance: 10
# 交易限制物品,lore含有该内容禁止交易
blacklist:
  - "限制级"
  - "无法出售"
  - "禁止交易"
# 允许交易的世界,留空时为所有世界均允许
whitelist-world: [ ]

语言文件

yml
money-not-enough: "§c你的金钱不足"
item-in-blacklist: "§c该物品不能交易"
world-not-allowed: "§c该世界不允许交易"
target-not-found: "§c找不到目标玩家"
player-is-self: "§c不能与自己交易"
player-in-trading: "§c{player}正在交易中"
trade-too-far: "§c交易距离太远"
trade-not-lock: "§c交易未锁定,无法确认"
trade-success: "§a交易成功"
trade-cancel: "§c{player}取消了交易"
trade-fail: "§c{player}余额不足,交易失败"
trade-apply-send: "§a已发送交易申请"
trade-apply-receive: "§c{player}申请与你交易,请在30秒内接受"
trade-accept-fail: "§c暂无与你的交易申请"
invite-title: "交易邀请"
invite-content: "§c{player}申请与你交易,请在30秒内接受"

# 龙核界面变量
title: "与{target_player}的交易"
money: "{target_money}"
target_slot_texture_x: "背景.x + 背景.width*0.08 + w*0.04*{index}"
target_slot_slot_x: "背景.x + 背景.width*0.08 + w*0.04*{index}"
self_slot_texture_x: "背景.x + 背景.width*0.08 + w*0.04*{index}"
self_slot_slot_x: "背景.x + 背景.width*0.08 + w*0.04*{index}"