• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

Citizens/角色/HyperMerchant

来自Minecraft插件百科
Qsefthuopq讨论 | 贡献2019年2月9日 (六) 17:59的版本 其他特点:
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

HyperMerchant

HyperMerchant 是兼容 HyperConomy 的商人NPC.

特性:

  • 用简易的菜单来让玩家购买和出售物品.
  • 兼容 HyperConomy 商店权限.
  • 可开关商人是否下班. 用指令暂时清空商店.
  • 简单的指令和权限.


这个页面的大多数信息不会更新. 请查看HyperMerchant bukkitdev页面获取最新信息.

如何获取最新版本

HyperMerchant 1.57-dev 为最新版 bukkitdev. 兼容Bukkit/Spigot 1.8.

最新构建版可在CI服务器下载.


你可以在这里看到插件的兼容性.


如何安装

下载兼容你的服务端版本的HyperConomy.

拖拽 HyperMerchant.jar 到插件文件夹

如何使用

  1. 建立商店.
  2. 创建NPC: /create npc my_shopkeeper
  3. 给NPC加上角色: /trait hypermerchant
  4. 给NPC加上商店: /hmerchant setshop 商店名

之后你就可以右键NPC打开商店菜单了.

你也可以输入 /shopmenu 或 /remotemenu 打开菜单 演示视频.


其他NPC指令

  • /hmerchant offduty - 开关NPC是否下班.
  • /hmerchant greeting Hi, welcome to my shop. --- 点击NPC时显示的消息.
  • /hmerchant farewell Thanks for the money, dude! --- 关闭商店页面时显示的消息.
  • /hmerchant closed Sorry, im on my lunch break. --- 下班时NPC说的话.
  • /hmerchant deny You are not permitted to shop here. --- 无权限时显示的消息.
  • /hmerchant setshop shop_name_here --- 点击NPC显示的商店名.

以下指令在已选择NPC时使用, 除非你已指定 --id flag:

  • /hmerchant greeting Hi,欢迎来到我的商店. --id 71

  • /hmerchant --id 71 greeting Hi,欢迎来到我的商店.


HyperMerchant 也包括以下方便的指令:

  • /remotemenu [shopname] - 直接打开商店菜单.
  • /shopmenu - 打开商店.
  • /rslist - 商店名.
  • /onduty - 是否让NPC下班.


其他特点:

拥有商店的玩家可以点击其他玩家来交易. 商店所有者可以输入 /onduty 来关闭这个功能,也可以在配置内关闭. 你可以限制商店所有者只能在商店内才能交易.


权限:

  hypermerchant.*:
     description: HyperMerchant所有指令的权限
     children:
        hypermerchant.menu: true
        hypermerchant.remote: true
        hypermerchant.npc: true
        hypermerchant.manage: true
  hypermerchant.menu:
     description: 允许输入 /shopmenu command.
     default: true
  hypermerchant.npc:
     description: 允许交互hypermerchant npc.
     default: true
  hypermerchant.remote:
     description: 允许输入 /remotemenu command.
     default: op
  hypermerchant.manage:
     description: 允许输入 /hmerchant command.
     default: op