ShopGUIPlus Editor

插件

· 作者 M0diis

一个简洁的 ShopGUIPlus 插件扩展,允许你在游戏内直接编辑物品价格,无需进入配置文件。

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

最新 2.1.1 · 26.2 · Paper / Purpur

一键开服(送7天)

ShopGUIPlusEditor

一个简单的 ShopGUIPlus 插件,允许你在游戏内直接编辑商店物品价格,而无需手动修改配置文件。

需要安装 ShopGUIPlus。

该插件目前支持存储在以下位置的商店:

/plugins/ShopGUIPlus/shops

要打开编辑器,只需:

SHIFT + 右键点击

一个商店物品,并使用提供的按钮调整价格。

在点击价格调整按钮时按住 Shift 键,会将配置的数量乘以 Shift 倍率。

最新版本已在 ShopGUIPlus v1.113.0 上测试。不保证与旧版本的兼容性。


功能

价格编辑

  • 从可配置的 GUI 编辑 购买 和 出售 价格
  • 使用可配置的增量按钮实时调整价格
  • 支持 Shift+点击以进行更大的价格变动
  • 可配置的最小和最大价格验证

物品管理

  • 直接从玩家主手添加新的 type: item 条目
  • 通过 GUI 或命令移除现有的商店物品
  • 保存/移除操作后自动重新加载 ShopGUIPlus 商店数据
  • 当省略时自动生成下一个可用的数字物品 ID

完全可配置

配置:

  • 编辑器布局
  • 操作按钮
  • 价格调整按钮
  • 验证限制
  • 新物品的默认值
  • 消息

元数据保留

添加新物品时,插件会保留常见的 ShopGUIPlus 物品属性:

  • material(材质)
  • quantity(数量)
  • name(名称)
  • lore(描述)
  • flags(标志)
  • damage(耐久度/伤害值)
  • enchantments(附魔)
  • unbreakable(不可破坏)
  • customModelData(自定义模型数据)
  • potion data(药水数据)
  • banner patterns(旗帜图案)
  • player heads / skins(玩家头颅/皮肤)

用法

编辑现有商店物品

  1. 打开一个 ShopGUIPlus 商店
  2. Shift + 右键点击一个物品
  3. 调整购买和出售价格
  4. 点击 Save Item(保存物品)
  5. 可选:点击 Remove Item(移除物品)以删除该条目

添加新物品

  1. 在主手中持有该物品
  2. 运行:
/shopguipluseditor add <shop> <slot> [page] [item-id]
  1. 在编辑器中配置价格
  2. 点击 Save Item(保存物品)

如果省略 item-id,插件将自动生成下一个可用的数字 ID。

直接移除物品

/shopguipluseditor remove <shop> <item-id>

直接打开编辑器

/shopguipluseditor edit <shop>/<item-id>

或者

/shopguipluseditor edit <material> [shop]

权限

  • shopguipluseditor.use — 打开和使用编辑器的权限
  • shopguipluseditor.command.reload — 重新加载配置的权限

配置

该插件完全可配置。

示例配置

edit-menu:
  title: "&8» &2Editing &c%shop_id%&8/&c%item_id%"
  size: 54
  preview-slot: 22

  fill-item:
    material: "GREEN_STAINED_GLASS_PANE"
    name: "&r"
    lore:
      - ""

  buy-price-button:
    slot: 20
    material: "PAPER"
    name: "&aBuy price"
    lore:
      - "&8» &7Shop: &f%shop_id%"
      - "&8» &7Slot/Page: &f%item_slot%&7/&f%item_page%"
      - ""
      - "&8» &aCurrent buy price: &2%current_buy_price%"
      - "&8» &aNew buy price: &2%new_buy_price%"

  sell-price-button:
    slot: 24
    material: "PAPER"
    name: "&cSell price"
    lore:
      - "&8» &7Shop: &f%shop_id%"
      - "&8» &7Slot/Page: &f%item_slot%&7/&f%item_page%"
      - ""
      - "&8» &aCurrent sell price: &2%current_sell_price%"
      - "&8» &aNew sell price: &2%new_sell_price%"

  save-button:
    slot: 31
    material: "EMERALD"
    name: "&aSave item"
    lore:
      - "&8» &7Mode: &f%editor_mode%"
      - "&8» &7Buy: &f%new_buy_price%"
      - "&8» &7Sell: &f%new_sell_price%"
      - ""
      - "&7Click to save your changes."

  remove-button:
    slot: 40
    material: "LAVA_BUCKET"
    name: "&cRemove item"
    lore:
      - "&8» &7Item ID: &f%item_id%"
      - "&8» &7Shop: &f%shop_id%"
      - ""
      - "&7Click to remove this item from the shop."

  back-button:
    slot: 49
    material: "BARRIER"
    name: "&cBack"
    lore:
      - "&7Return to the shop page."

  sell-price-adjust-buttons:
    button-1:
      slot: 41
      size: 1
      name: "&c$%amount%"
      amount: 0.10
      shift-multiplier: 2
      material: "RED_CONCRETE"
      lore:
        - "&8» &aLeft click to add %amount%"
        - "&8» &aRight click to subtract %amount%"
        - ""
        - "&7Shift-click to multiply by %shift_multiplier%"
    button-2:
      slot: 42
      size: 2
      name: "&c$%amount%"
      amount: 1
      shift-multiplier: 2
      material: "RED_CONCRETE"
      lore:
        - "&8» &aLeft click to add %amount%"
        - "&8» &aRight click to subtract %amount%"
        - ""
        - "&7Shift-click to multiply by %shift_multiplier%"
    button-3:
      slot: 43
      size: 3
      name: "&c$%amount%"
      amount: 10
      shift-multiplier: 2
      material: "RED_CONCRETE"
      lore:
        - "&8» &aLeft click to add %amount%"
        - "&8» &aRight click to subtract %amount%"
        - ""
        - "&7Shift-click to multiply by %shift_multiplier%"

buy-price-adjust-buttons:
    button-1:
      slot: 37
      size: 1
      name: "&a$%amount%"
      amount: 0.10
      shift-multiplier: 2
      material: "LIME_CONCRETE"
      lore:
        - "&8» &a左键点击以添加 %amount%"
        - "&8» &a右键点击以减去 %amount%"
        - ""
        - "&7Shift+点击以乘以 %shift_multiplier%"
    button-2:
      slot: 38
      size: 2
      name: "&a$%amount%"
      amount: 1
      shift-multiplier: 2
      material: "LIME_CONCRETE"
      lore:
        - "&8» &a左键点击以添加 %amount%"
        - "&8» &a右键点击以减去 %amount%"
        - ""
        - "&7Shift+点击以乘以 %shift_multiplier%"
    button-3:
      slot: 39
      size: 3
      name: "&a$%amount%"
      amount: 10
      shift-multiplier: 2
      material: "LIME_CONCRETE"
      lore:
        - "&8» &a左键点击以添加 %amount%"
        - "&8» &a右键点击以减去 %amount%"
        - ""
        - "&7Shift+点击以乘以 %shift_multiplier%"

new-item:
  default-buy-price: 0.0
  default-sell-price: -1.0
  default-page: 1
  default-quantity: 1
  copy-held-amount: true

validation:
  buy-price:
    min: 0.0
    max: -1
  sell-price:
    min: -1.0
    max: -1

messages:
  successfully-set: "&a成功更新了物品价格。"
  item-added: "&a成功将 &f%item_id%&a 添加到 &f%shop_id%&a。"
  item-removed: "&a成功从 &f%shop_id%&a 中移除 &f%item_id%&a。"
  hold-item: "&c请在主手持有要添加的物品。"
  player-only: "&c只有玩家才能使用此命令。"
  shop-not-found: "&c未找到名为 &f%shop_id%&c 的 ShopGUIPlus 商店。"
  item-not-found: "&c在 &f%shop_id%&c 中未找到物品 ID &f%item_id%&c。"
  material-not-found: "&c未找到使用材质 &f%material%&c 的任何 ShopGUIPlus 物品。"
  material-ambiguous: "&c在多个商店中找到了 &f%material%&c:&f%matches%&c。请使用 &f/shopguipluseditor edit <material> <shop>&c。"
  material-ambiguous-in-shop: "&c在 &f%shop_id%&c 中找到了多个 &f%material%&c 条目:&f%matches%&c。请使用 &f/shopguipluseditor edit %shop_id%/<item-id>&c。"
  invalid-number: "&c无效数字:&f%input%&c。"
  invalid-slot: "&c插槽必须介于 &f0&c 和 &f%max_slot%&c 之间,适用于 &f%shop_id%&c。"
  invalid-page: "&c页数必须至少为 &f1&c。"
  invalid-item-id: "&c物品 ID 只能包含字母、数字、连字符和下划线。"
  item-already-exists: "&c物品 ID &f%item_id%&c 已存在于 &f%shop_id%&c 中。"
  slot-occupied: "&c页面 &f%item_page%&c 上的插槽 &f%item_slot%&c 在 &f%shop_id%&c 中已被占用。"
  save-failed: "&c保存 ShopGUIPlus 商店文件失败。"
  no-permission: "&c您没有执行此操作的权限。"
  reloaded: "&a成功重新加载配置。"
  command-help:
    - "&8/shopguipluseditor reload"
    - "&7在主手持有要添加的物品。"
    - "&8/shopguipluseditor add <shop> <slot> [page] [item-id] &7(使用手持物品)"
    - "&8/shopguipluseditor edit <shop>/<item-id>"
    - "&8/shopguipluseditor edit <material> [shop]"
    - "&8/shopguipluseditor remove <shop> <item-id>"

有关所有可用选项,请参阅完整配置文件。


当前限制

add-item 流程目前仅创建标准的:

type: item

条目。

该插件不生成以下内容:

  • type: command
  • type: permission
  • 其他自定义 ShopGUIPlus 操作类型

此外,来自以下插件的自定义提供程序 ID:

  • Nexo
  • Oraxen
  • ItemsAdder

以及类似系统无法从手持物品重建,如果需要使用提供程序原生的条目,则仍必须手动配置。


指标统计

ShopGUIPlusEditor 通过 bStats(Minecraft 软件的开源指标平台)收集匿名的服务器统计数据。

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源