Nascraft26P 文档

出售魔杖

一个把物品直接卖给市场的便捷方式。

Nascraft 内置了「出售魔杖」系统。先在配置里打开:

# ...
sell-wands:
  enabled: true

打开之后就可以配置自己的魔杖了。魔杖有以下属性:

配置好之后,用 /givesellwand [ID] 或 /givesellwand [玩家] [ID] 获取。


以下是默认预置的三把魔杖(可以直接改、删或新增):

提示:这些只是示例,随你增删改。

# ...
sell-wands:
  enabled: true
  wands:
    # ID:只是标识符
    basic:
      material: 'stick'
      # 推荐的 MiniMessage 编辑站点:https://webui.advntr.dev/
      display-name: '<b><gradient:#19e312:#a3e300>BASIC WAND</gradient></b>'
      lore:
        - '<b><gradient:#00eeff:#2e69ff>⏵ RIGHT CLICK</gradient></b> <color:#517d58>to estimate value.</color>'
        - '<b><gradient:#ff383b:#ff2403>⏵ LEFT CLICK</gradient></b> <color:#517d58>a container to</color>'
        - '<color:#517d58>sell all its content to the market!</color>'
        - ' '
        - '<color:#517d58>Uses left:</color> <b><color:#a3e300>[USES]</color></b>'
      # 最大使用次数。也可以改成额度限制,见 MILLONAIRE WAND。
      # 两者都不设则无限使用,见 PERMANENT WAND。
      uses: 10
      # 使用该魔杖需要的权限,不填则不校验权限。
      permission: 'nascraft.wand.basic'

    permanent:
      material: 'blaze_rod'
      enchanted: true
      display-name: '<b><gradient:#e74cf5:#f51d41>PERMANENT WAND</gradient></b>'
      lore:
        - '<b><gradient:#00eeff:#2e69ff>⏵ RIGHT CLICK</gradient></b> <color:#8077ba>to estimate value.</color>'
        - '<b><gradient:#ff383b:#ff2403>⏵ LEFT CLICK</gradient></b> <color:#8077ba>a container to</color>'
        - '<color:#8077ba>sell all its content to the market</color>'
        - '<color:#8077ba>for <b><color:#ff2403>50%</color></b> of its value.</color>'
        - '<i><color:#343d66>⌛ 5 minutes of cooldown between uses.</color></i>'
        - ' '
        - '<b><gradient:#f51d41:#e74cf5>UNLIMITED USES</gradient><b>'
      multiplier: 0.5
      # 限定该魔杖可用的货币
      currencies:
        - 'vault'
      # 两次使用之间的最小冷却(秒)
      cooldown: 300 # 300/60 = 5 分钟
      permission: 'nascraft.wand.advanced'

    millionaire:
      material: 'blaze_rod'
      enchanted: true
      display-name: '<b><gradient:#F57E00:#EFF551>MILLIONARIE WAND</gradient></b>'
      lore:
        - '<b><gradient:#ff383b:#ff2403>⏵ LEFT CLICK</gradient></b> <color:#85784D>to estimate value.</color>'
        - '<b><gradient:#00eeff:#2e69ff>⏵ RIGHT CLICK</gradient></b> <color:#85784D>a container to</color>'
        - '<color:#85784d>sell all its content to the market</color>'
        - '<color:#85784d>for <color:#EFF551>150%</color> its value.</color>'
        - ' '
        - '<color:#85784d>Left to sell:</color> <b>[PROFIT-LEFT]</b>'
      currencies:
        - 'vault'
      # 该魔杖最多能卖出总额 1,000,000$(含倍率)
      max-profit: 1000000
      multiplier: 1.5
      permission: 'nascraft.wand.millonaire'
      # 调整左右键对应的操作,写 'none' 可禁用。
      # 默认:sell 左键,estimate 右键
      sell: 'right'
      estimate: 'left'