FastSellCMI

插件

· 作者 pmakin

插件允许通过 CMI 的价值比率在一个菜单中出售物品

0 本站下载 0 关注 更新于 1 年前

最新 3.1.0 · 1.21.11 · Paper / Purpur

一键开服(送7天)

Modrinth | Hangar | Discord

FastSellCMI

适用于 PaperMC 的插件,允许通过 CMI 的价值比率在单个菜单中出售物品

版本:Paper、Purpur 以及其他基于 Paper 的分叉版本,1.18.2+

Java:17+

支持迷你消息并拥有可配置的菜单!

<br/>
<i>如果您有任何问题,请加入 Discord!</i>

命令:

  • /fastsell
    • 别名:/fsell
    • <无参数> - 打开售卖菜单
    • reload - 重载配置

权限:

  • fastsell.open - 允许使用 /fastsell 命令。默认:所有人
  • fastsell.reload - 允许使用 /fastsell reload 命令。默认:管理员(op)
  • fastsell.* - 允许所有命令。默认:管理员(op)

配置文件

config.yml

变量 默认值 占位符
config-reloaded <green>FastSellCMI 配置已重新加载!
missing-permission <red>权限不足!
sell-message <green>物品已售出!你获得了 {total} {total} - 获得的总金额
no-items-sold-message <yellow>没有物品可以出售。
cancel-message <red>你取消了出售!
sell-sound
  name: ENTITY_VILLAGER_TRADE
volume: 1
pitch: 0

| no-items-sold-sound |

  name: ENTITY_VILLAGER_HURT
volume: 1
pitch: 0
| | | cancel-sound |
  name: ENTITY_VILLAGER_NO
volume: 1
pitch: 0
| |

sell_menu.yml

变量 默认值 描述
window-title <green>快速出售你的物品!
inventory-map
- WWWWWWWWW
- W W
- W W
- W W
- W W
- WSSSPCCCW
基本上是一个 9x6 大小的背包布局。
item-map
  P:
end_crystal 1:
name: '<blue>出售价格: <red>{total}'
S:
green_stained_glass_pane 1:
name: <green>出售
C:
red_stained_glass_pane 1:
name: <red>取消
W:
purple_stained_glass_pane 1:
name: ' '
对应 inventory-map 中字符的物品属性,支持:
name: String
lore: List<String>
cmd(自定义模型数据): Int
unbreakable: Bool
durability: Int
item_flags: List<String>
enchantments: List<String>。参见 示例。
functional-map
  P: price-button
S: sell-button
C: cancel-button
W: wall-button
按钮“类型”,对应 inventory-map 中的字符。

注意

配置 ItemStack

ItemStack 序列化器支持耐久度、药水、烟花、皮革颜色和玩家头颅。

示例:

通用示例:

general-example:
  diamond_sword 1:
    name: <green>绿色名称
    lore:
    - 背景故事 1
    - 背景故事 2
    - 背景故事 3
    cmd: 6666
    unbreakable: true
    enchantments:
    - 引雷 10
    item_flags:
    - hide_enchants
    - hide_dye
    durability: 781

药水示例:

potion-example:
  potion 1:
    potion:
      base: AWKWARD
      effects:
      - type: ABSORPTION
        duration: 100
        amplifier: 1

烟花示例:

firework-example:
  firework_rocket 1:
    firework:
      effects:
      - flicker: true
        trail: true
        type: BALL
        colors:
        - hex: '#808080'
        fade:
        - hex: '#00ffff'
        - hex: '#ff0000'
        - hex: '#008000'
      power: 0

皮革颜色示例:

color-example:
  leather_chestplate 1:
    color:
      hex: '#00ffff'

玩家头颅示例:

skull-example:
  player_head 1:
    textures: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTcxNzA1NzY4NDY4ZWViNjM2NmYyYWVhODQ3YjBjNzI2NGUwNWYyNWZlMGZiNGMxZTNlNjYzN2I5NTQ1MjY1YyJ9fX0=

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源