适用于 Minecraft 1.13 和 1.14
EasyShops2.0
创建商店从未如此简单
只需几次点击
高度可定制!
买卖操作直观易懂!
随时知晓有人在你的商店买卖物品!
让每位玩家自由选择与商店的交互方式!
如果您发现了错误,请在此处报告:
如果您有希望在该插件中实现的想法,请在此处建议:
捐赠:paypal.me/Nemo64
该插件的最新版本(1.8.7.1b)在您首次使用时会抛出错误。如果遇到此错误,只需重启服务器即可解决。我正在努力修复这个问题。
重要提示:此插件依赖 Vault
功能特性
- 所有消息均可自定义
- 商店支持三种模式(购买、出售及买卖兼具)
- 支持在双层箱子中创建商店
- 使用潜影盒作为商店以扩展额外空间
- 商店完全可定制
- 支持管理员模式(商店不消耗物品或金钱)和“允许一切”模式(您可以向商店出售任何物品,可以更改价格并支持自定义物品)
- 每位玩家都可以按照自己的意愿与商店互动(例如通过聊天栏或菜单编辑商店,通过聊天栏或菜单进行买卖等)
- 可在配置文件中自定义声音和粒子效果
- 提供引导命令或传送至商店的命令
- 更多实用功能
您可以在页面下方阅读关于这些功能的更多信息
创建商店
创建商店需要足够的空间,作为商店的箱子上方和前方的方块必须为空。
创建商店时,您需要手持要出售/购买的物品,并在按住 Shift 键的同时左击箱子。
在菜单中,您可以选择价格和模式。在购买模式下,您还可以选择数量上限;要设置上限,请点击金粒;若要返回选择价格,请点击漏斗。
如果您拥有 easyShops.adminMode 权限,您将能够将商店设置为管理员模式,这意味着商店将不会消耗任何物品或金钱。
您无法在配置文件禁止的世界或您无法互动的区域创建商店。
编辑商店
编辑商店时,您需要按住 Shift 键并左击商店。
如果您点击商店购买/出售的物品图标,该物品将被您主手持有的物品替换。
如果您拥有 easyShops.editOthersShops 权限,您可以更改商店的所有者。
要添加玩家,请点击头像,然后点击“添加玩家”按钮,并在聊天栏中输入玩家名称。
要移除玩家,请点击头像,然后点击“移除玩家”按钮,再点击要移除的玩家头像。
一个商店最多只能添加 43 名玩家。
被添加的玩家仅能打开商店所在的箱子。
此处管理员模式已被管理员菜单取代。您可以在下方阅读相关内容。
其余操作与创建新商店相同。
删除商店
进入编辑商店菜单,点击屏障方块,然后点击“接受”。
您也可以破坏商店告示牌下方的箱子。
购买与出售
要购买或出售物品,您需要按住 Shift 键并右击商店。
根据您在 /easyshops options 菜单中是否启用了“通过聊天栏买卖”选项,您可以通过聊天栏或通过库存界面进行买卖。
管理员菜单
管理员菜单是专为管理员设计的界面,在此菜单中,管理员可以修改商店的几乎所有设置。
纸张用于修改商店告示牌的文本行,火把上会显示预览。此外,点击火把将一次性编辑所有文本行。
点击玻璃板可以更改商店招牌的类型,如果点击招牌本身,它将恢复为默认招牌类型(橡木招牌)。此功能仅适用于 Minecraft 1.14 及更高版本。
启用后,玩家可以将任何物品出售给商店。
点击火把可以看到你将获得多少金钱。此模式目前不支持潜影盒内的物品,但支持自定义物品,你可以手持该物品时通过命令 /es admin addCustomItem <item price> 进行指定。启用此选项后,商店将设置为售卖模式并开启管理员模式。
使用此选项时设置的文本将在你使用 %owner% 变量时在招牌上显示。
启用后,商店不会消耗任何物品或金钱。
允许的玩家
被允许的玩家是指那些能够打开商店所在的箱子并向其中添加或取出物品的玩家。
/easyshops options
-聊天购买:
启用后,在购买或出售时,你将通过聊天窗口而不是菜单进行操作。
-限制于库存:
启用后,在使用菜单购买/出售时,你将无法选择超过可出售数量或超出你背包容量的物品。
-限制于支付能力:
启用后,在使用菜单购买时,你将无法选择超过你支付能力的物品。
-聊天创建与编辑:
启用后,你将通过聊天窗口而不是菜单来创建和编辑商店。
-重新发送消息:
启用后,在通过聊天编辑商店时,你会再次收到用于编辑商店的消息。
-使用光束引导:
启用后,当使用 /gotoshop 命令时,激光束会引导你前往商店;否则,将由隐形史莱姆引导。
配置文件
-generate-items:在每个商店顶部生成一个物品
-check-shops:插件启动时检查所有商店,如果发现处于禁止状态的商店,将其移除
-admin-shop-dont-get-messages:处于管理员模式的商店在有人购买或出售时不接收消息
-owner-can-buy-sell:允许商店所有者在该商店购买/出售。如果商店处于管理员模式,则 owner-can-buy-sell-admin 优先
-owner-can-buy-sell-admin:如果商店处于管理员模式,允许商店所有者在该商店购买/出售
-use-roman-numbers:在聊天中显示商店信息时使用罗马数字
-default-options:为所有玩家设置默认选项
-banned-worlds:禁止创建商店的世界名称列表
-banned-items:禁止用于创建商店的物品 ID 列表。
-create-edite:配置创建/编辑菜单面板的值
-buy-sell:配置购买/出售菜单面板的值
-souds-and-particles:自定义商店的声音和粒子效果
-enable-bStats:插件启动时启用 bStats
-check-update-on-join: 当 OP 玩家或拥有 easyShops.checkUpdateOnJoin 权限的玩家加入服务器时,插件将检查更新,如果发现新版本,会向玩家发送消息
#Summons an item at the top of the shop
generate-items: true
#Check every shop when the plugin enables. Can cause lag
check-shops: true
#Don't send the messages when someone buys or sells
向管理员商店发送消息
admin-shop-dont-get-messages: true
所有者是否可以在自己的商店中进行购买/出售?
owner-can-buy-sell: false
所有者是否可以在自己的管理员商店中进行购买/出售?
owner-can-buy-sell-admin: true
在显示物品信息时
购买/出售时展示
附魔等级以罗马数字形式呈现
use-roman-numbers: true
#启用 bStats
enable-bStats: true
#当管理员玩家或拥有权限
#easyShops.checkUpdateOnJoin 的玩家加入服务器时
#插件将检查更新
check-update-on-join: true
#使用的音效和粒子效果
#当玩家交互时触发
带有商店
声音和粒子效果:
带粒子效果的列表:
带声音的列表:
粒子效果:
方块操作:
显示: true
粒子类型: BARRIER
数量: 1
商店删除:
display: true
particle: EXPLOSION_NORMAL
amount: 20
shop-created-edited:
display: true
particle: VILLAGER_HAPPY
amount: 20
sounds:
sell:
display: true
sound: ENTITY_CHICKEN_EGG
volume: 100
pitch: 1
buy:
display: true
sound: ENTITY_ITEM_PICKUP
volume: 100
pitch: 1
block-action:
display: true
sound: ENTITY_VILLAGER_NO
volume: 100
pitch: 1
cancel-ation:
display: true
sound: BLOCK_CHEST_CLOSE
volume: 100
pitch: 1
click-inventory:
display: true
sound: BLOCK_DISPENSER_FAIL
volume: 100
pitch: 1
create-edite-shop:
display: true
sound: ENTITY_PLAYER_LEVELUP
volume: 100
pitch: 2
delete-shop:
display: true
sound: ENTITY_GENERIC_EXPLODE
volume: 100
pitch: 1
#更改在创建和编辑菜单中的选项值
#可以使用小数
create-edite:
white-concrete:
display: true
value: 1
magenta-concrete:
display: true
value: 5
light-blue-concrete:
display: true
value: 10
yellow-concrete:
display: true
value: 50
lime-concrete:
display: true
value: 100
pink-concrete:
display: true
value: 500
gray-concrete:
display: true
value: 1000
orange-concrete:
display: true
value: 5000
light-gray-concrete:
display: true
value: 10000
cyan-concrete:
display: true
value: 100000
#修改购买和出售菜单中选项的值
#不能使用小数
buy-sell:
white-concrete:
display: true
value: 1
magenta-concrete:
display: true
value: 5
light-blue-concrete:
display: true
value: 10
yellow-concrete:
display: true
value: 50
lime-concrete:
display: true
value: 100
pink-concrete:
display: true
value: 500
gray-concrete:
display: true
value: 1000
orange-concrete:
display: true
value: 5000
light-gray-concrete:
display: true
value: 10000
cyan-concrete:
display: true
value: 100000
default-options:
use-chat: false
limit-to-player-stock: true
limit-to-player-can-pay: true
create-edite-with-chat: false
#禁止创建商店的世界
banned-worlds:
- 'worldName'
- 'worldName'
- 'worldName'
#禁止用于商店的物品
banned-items: #请在 messages.yml 文件中查看物品列表
- 'itemId'
- 'itemId'
- 'itemId'
重要提示:
在 messages.yml 文件中有一个物品列表,如果你想将某个物品添加到此列表中,必须使用大写形式并加上下划线。例如,如果你想禁用钻石头盔,你需要去物品列表查找,你会找到:"DIAMOD_HELMET: Diamond helmet"。在此列表中,你必须填写 "DIAMOD_HELMET",而不是 "Diamond helmet"
消息文件
重要提示:以 ! 开头的变量不会随消息显示,且必须位于行首。它们用于向插件提供关于其需要执行的操作的信息。每行只能有一个。
重要提示:并非所有消息都包含变量。以下是包含变量的所有消息列表
命令:
--------+商店选项:
------------+设置价格、设置限制、更改所有者、添加玩家、移除玩家: %id% 将被替换为商店 ID
--------+信息:
------------%version% 将被插件版本替换
------------%creator% 将被插件创作者 (Nemo_64) 替换
--------+版本: %version% 将被插件版本替换
--------+商店信息:
------------%id% 将被替换为商店 ID
------------%item% 将被替换为商店物品
------------%x% 将被替换为商店 X 坐标
------------%y% 将被替换为商店 Y 坐标
------------%z% 将被替换为商店 Z 坐标
------------%world% 将被替换为商店所在世界
------------%price% 将被替换为商店价格
------------%mode% 将被替换为商店模式
------------%admin% 如果商店处于管理员模式则为 'true',否则为 'false'
------------%allowed% 将被替换为该商店允许的所有玩家
----+简易商店:
--------+选项:
------------+编辑其他选项: %player% 将被替换为玩家
--------+管理员:
------------+获取自定义物品:
----------------+给予其他玩家物品:
--------------------%player% 将被替换为获得自定义物品的玩家
--------------------%amount% 将被替换为给定的数量
--------------------%customItem% 将被替换为自定义物品名称
-----------------+给予物品:
--------------------%customItem% 将被替换为自定义物品名称
--------------------%amount% 将被替换为给定的数量
------------+检查商店:
----------------+已检查: %id% 将被替换为商店 ID
----+搜索商店:
--------+找到商店:
------------%shopX% 将被替换为商店 X 坐标
------------%shopY% 将被替换为商店 Y 坐标
------------%shopZ% 将被替换为商店 Z 坐标
------------%shopWorld% 将被替换为商店所在世界
------------%price% 将被替换为商店价格
------------%id% 将被替换为商店 ID
----+未找到物品:
------------%mode% 将被替换为商店模式
------------%item% 将被替换为商店物品
--------未找到物品: %item% 将被替换为指定的物品
----+前往商店:
--------+无世界: %world% 将被替换为商店所在世界
--------+标记点:
------------+距离: %distance% 将被替换为标记点与商店之间的距离
告示牌:
----+消息行1、消息行2、消息行3 和 消息行4:
--------%mode% 将被替换为商店模式
--------%item% 将被替换为商店物品
--------%price% 将被替换为商店价格
--------%stock% 将被替换为商店库存
--------%owner% 将被替换为商店所有者的名称
物品栏物品:
----+选项:
--------+使用聊天.名称、限制至玩家库存.名称、限制至玩家可支付.名称: %option% 将根据其启用或禁用状态被替换为启用或禁用字段
----+创建商店、编辑商店:
--------+设置限制: %limit% 将被替换为商店限制
--------+告示牌:
------------+名称、描述:
----------------%price% 将被替换为商店价格
----------------%mode% 将被替换为商店模式
----------------%item% 将被替换为商店物品
----+购买商店、出售商店:
--------+告示牌:
------------+名称、描述:
----------------%amount% 将被替换为要购买/出售的物品数量
----------------%price% 将被替换为总价格
通过聊天购买/出售:
----+附魔:
--------+%enchantment% 将被替换为附魔名称
--------+%enchantmentLevel% 将被替换为附魔等级(如果配置中的 use-roman-numbers 为 true,则使用罗马数字)
----+描述: %line% 将被替换为物品描述中的每一行
----+物品:
--------%name% 将被替换为物品名称
--------%type% 将被替换为物品类型
--------%durability% 将被替换为物品受到的伤害
--------%lore% 将被替换为物品描述。需要单独占一行
--------%enchantments% 将被替换为物品附魔。需要单独占一行
----+消息:
--------%mode% 将被替换为商店模式
--------%item% 将被替换为商店物品
--------%price% 将被替换为商店价格
--------%stock% 将被替换为商店库存
消息: (目前此路径下的所有消息均无用,在将来的版本中将具有用途)
----+他人购买、他人出售:
--------%player% 将被替换为玩家
--------%amount% 将被替换为数量
--------%item% 将被替换为物品
--------%price% 将被替换为价格
--------%id% 将被替换为商店 ID
--------%shopX% 将被替换为商店 X 坐标
--------%shopY% 将被替换为商店 Y 坐标
--------%shopZ% 将被替换为商店 Z 坐标
--------%shopWorld% 将被替换为商店所在世界
----+商店缺货:
--------%id% 将被替换为商店 ID
--------%shopX% 将被替换为商店 X 坐标
--------%shopY% 将被替换为商店 Y 坐标
--------%shopZ% 将被替换为商店 Z 坐标
--------%shopWorld% 将被替换为商店所在世界
----+更改所有者:
--------%player% 将被替换为玩家
--------%id% 将被替换为商店 ID
编辑其他商店消息: %owner% 将被替换为商店所有者
剩余商店: %remainingShops% 将被替换为该玩家可以创建的剩余商店数量
完成操作:
----+购买、出售:
--------%amount% 将被替换为已售出/购买的商品数量
--------%item% 将被替换为已售出/购买的物品
--------%price% 将被替换为价格
----+玩家已添加,玩家已移除: %player% 将被替换为已添加/移除的玩家
----+更改所有者: %owner% 将被替换为商店所有者
----+更改价格: %price% 将被替换为商店价格
----+更改限制: %limit% 将被替换为商店限制
错误:
----+无法出售该物品: %item% 将被替换为物品
----+无法在世界中出售: %world% 将被替换为世界
----+已添加: %player% 将被替换为已添加的玩家
----+更改价格, 更改限制: %message% 将被替换为消息
+通过聊天创建商店: %item% 将被替换为物品
通过聊天编辑商店:
----消息:
--------%mode% 将被替换为模式
--------%limit% 将被替换为限制
--------%price% 将被替换为价格
--------%item% 将被替换为物品
--------%admin% 指示商店是否为管理员模式
--------%owner% 将被替换为商店所有者
--------%playersAllowed% 将被替换为允许的玩家
--------%allowEverything% 指示商店是否允许一切
--------%sign% 将被替换为告示牌类型
--------%line1%...%line4% 将被替换为告示牌行
--------%adminName% 将被替换为要显示的所有者名称
--------%addPlayer% 将被替换为消息 edit-shop-with-hat.add-player,并使其在聊天中可点击
--------%removePlayer% 将被替换为消息 edit-shop-with-chat.remove-player,并使其在聊天中可点击
--------%delete% 将被替换为消息 edit-shop-with-chat.delete,并使其在聊天中可点击
--------%switch% 将被替换为消息 edit-shop-with-chat.switch,并使其在聊天中可点击
--------!mode! 告诉插件,当点击消息时,商店的模式会改变
--------!limit! 告诉插件,当点击消息时,商店的限制会改变
--------!mode! 告诉插件,当点击消息时,商店的模式会改变
--------!item! 告诉插件,当点击消息时,商店的物品会改变
--------!admin! 告诉插件,当点击消息时,商店的管理员模式会改变
--------!owner! 告诉插件,当点击消息时,商店的所有者会改变
--------!delete! 告诉插件,当点击消息时,商店必须被移除。需要变量 %delete%
--------!players! 告诉插件,当点击消息时,该消息用于添加和移除玩家。需要变量 %addPlayer% 和 %removePlayer%
--------!lines! 告诉插件,当点击消息时,商店告示牌的行会改变
--------!displayLine! 告诉插件,如果编辑器没有权限 "easyShops.adminMode",此行将不会显示
--------!sign! 告诉插件,当点击消息时,商店的告示牌类型会改变
--------!everyhting! 告诉插件,当点击消息时,商店的允许一切模式会改变
--------!adminName! 告诉插件,当点击消息时,商店所有者的名称会改变
命令
easyShops <version/info/commands/options/shopinfo (商店 ID)/admin [reload/clearShops (确认)/checkShop (商店 ID)/checkShops]> 别名:es
- version:显示插件版本
- info:显示插件信息
- commands:列出所有命令及其简要说明
+ - shopinfo:显示特定商店的信息
+ - options:打开选项菜单
+ - admin:管理员子命令
++ - addCustomItem:将主手物品注册为自定义商品,使你在支持“出售一切”的商店中可以出售该物品
++ - removeCustomItem:移除由 addCustomItem 注册的自定义商品
++ - reload:重载插件
++ - clearShops:删除所有商店。执行前需确认
++ - checkShops:检查所有商店,若发现处于禁止状态的商店(例如售卖违禁品),将其自动移除
++ - checkShop:检查指定商店,若其处于禁止状态则将其移除(例如售卖违禁品)
++ - checkUpdate:检查是否有更新
searchshop [shop mode]:搜索出售或购买指定商品的商店。别名:ss
tptoshop [force]:传送至指定商店。别名:ts
gotoshop:显示如何前往与玩家在同一世界中的商店。别名:gs
shopoptions:在命令中编辑商店的菜单。别名:so
权限
重要提示:拥有 OP(管理员)权限的玩家拥有所有权限
-easyShops.editOthersShops:允许编辑其他玩家的商店
-easyShops.maxShops.n:允许拥有 n 个商店
-easyShops.maxShops.unlimited:允许拥有无限数量的商店
-easyShops.createDoubleShops:允许在双层箱子中创建商店
-easyShops.checkUpdateOnJoin:当玩家加入服务器时,若有新版本可用则会收到提示
-easyShops.playerOptions.editOthers:允许编辑其他玩家的选项
-easyShops.playerOptions.chatToCreateEdit:允许更改“使用聊天创建/编辑商店”选项
-easyShops.playerOptions.chatToBuySell:允许更改“使用聊天进行买卖”选项
-easyShops.playerOptions.limitToPlayerStock:允许更改“限制于你的库存”选项
-easyShops.playerOptions.limitToPlayerCanPay:允许更改“限制于你可支付金额”选项
-easyShops.playerOptions.changeGSOption:允许更改“使用激光束”选项
-easyShops.playerOptions.resendEditMessage:允许更改“重新发送编辑消息”选项
-easyShops.useShulkerBoxes.buysell:允许在购买和出售时使用潜影盒以增加存储空间
-easyShops.useShulkerBoxes.sellAll:允许在支持“出售一切”的商店中使用潜影盒以增加存储空间
-easyShops.admin.adminMenu:允许在使用菜单编辑商店时进入管理员菜单
-easyShops.admin.changeOwner:允许更改商店所有者
-easyShops.admin.adminMode:允许将商店设置为管理员模式
-easyShops.admin.editLines:允许编辑商店告示牌的行内容
-easyShops.admin.editSign:允许编辑商店告示牌的类型
-easyShops.admin.editOwnerName:允许修改告示牌上被 %owner% 变量替换的消息
-easyShops.admin.allowEverything:允许将商店设置为“允许一切”模式。由于此模式同时会将商店设为管理员模式,因此用户还需具备 easyShops.admin.adminMode 权限才能使该权限生效
-easyShops.command.searchShop:允许使用 /searchshop 命令
-easyShops.command.tpToShop:允许使用 /tptoshop 命令
-easyShops.command.goToShop:允许使用 /gotoshop 命令
-easyShops.command.easyShop.options:允许使用 /easyshops options 命令
-easyShops.command.easyShop.version:允许使用 /easyshops version 命令
-easyShops.command.easyShop.info:允许使用 /easyshops info 命令
-easyShops.command.easyShop.commands:允许使用 /easyshops commands 命令
-easyShops.command.easyShop.shopInfo:允许使用 /easyshops shopinfo 命令
-easyShops.command.easyShop.admin.reload:允许使用 /easyshops admin reload 命令
-easyShops.command.easyShop.admin.clearShops:允许使用 /easyshops admin clearShops 命令
-easyShops.command.easyShop.admin.checkShops:允许使用 /easyshops admin checkShops 命令
-easyShops.command.easyShop.admin.checkShop:允许使用 /easyshops admin checkShop 命令
-easyShops.command.easyShop.admin.checkUpdate:允许使用 /easyshops admin checkUpdate 命令
-easyShops.command.easyShop.admin.addCustomItem:允许使用 /easyshops admin addCustomItem 命令
-easyShops.command.easyShop.admin.removeCustomItem:允许使用 /easyshops admin removeCustomItem 命令
-easyShops.command.easyShop.admin.getCustomItem:允许使用 /easyshops admin getCustomItem 命令
Works with minecraft 1.13 and 1.14
EasyShops2.0
Create shops has never been so easy
No more than a few clicks
Really customizable!
Buying and selling can't be more intuitive!
Find out when someone buys or sells at your shops!
Let every player choose how they want to interact with the shops!
If you have found a bug, report it here:
If you have an idea that you'd like to see in the plugin, suggest it here:
Donations: paypal.me/Nemo64
The lastest version of the plugin (1.8.7.1b) throws an error the first time you use the plugin. If you get the error just reload the server and it will be gone. I'm working to solve this.
IMPORTANT: THIS PLUGIN USES VAULT
Features
- Every message is customizable
- 3 diferent modes for the shops (buy, sell and buy and sell)
- Posibility to create shops in double chests
- Use shulker boxes with the shops to have extra espace
- The shops are fully customizable
- Modes like the admin mode (shop doesn't consume items or money) and allow everything mode (You can sell everything to a shop, you can change the prices and suports custom items)
- Every player can interact with the shops as they want (If they want to edite them with the chat or with a menu, if they want to buy or sell with the chat or with a menu, etc.)
- Sounds and particle effects that coy can configurate in the config
- Comands to get guided or teleported to a shop
- Many more things
You can read more about this features down the page
Creating a shop
To create a shop you need space, the block in front of and on top of the chest that will be the shop need to be air.
To create a shop you have to do left click while you are shifting in a chest with the item to sell/buy in your main hand.
In the menu you can select a price and a mode. In the buy mode you can select also a limit, to select a limit do click in the golden nugget, to go back to select a price do click in the hopper.
If you have the permission easyShops.adminMode you will be able to set the shop in admin mode, this means that the shop will not consume any items or money.
You shuldn't be able to create shops in the worlds banned in the config and in areas where you cant interact.
Editing a shop
To edit a shop you have to do left click while you are shifting in a shop.
If you click the item that the shop buys/sells the item will be changed to the item that you are holding in your main hand.
If you have the permission easyShops.editOthersShops you can change the owner of the shop.
To add a player click the head and then the 'Add player' button and send the name of the player in the chat.
To remove a player click the head and then the 'Remove player' button and click the head of the player to remove.
A shop can't have more than 43 players added.
The player added just can open the chest where the shop is.
Here the admin mode is replaced with the admin menu. You can read about this down.
The rest works as if you were creating a new shop.
Deleting a shop
Enter the edit shop menu and click the barrier and then click 'Accept'
You can also break the chest of the sign of the shop.
Buyng and selling
To buy or sell you have to do right click while you are shifting in a shop.
Depending if you have enabled or no the option 'Buy with chat' in the /easyshops options menu you will buy or sell with the chat or with an inventory.
Admin menu
The admin menu is a menu made for the admins, in this menu the admins can modify almost everything of a shop.
The papers are used to modify the lines of the sign of the shop, in the torch you can see a preview. Also, if you click the torch you will edite all the lines at ones.
Clicking the glass panes you can change the type of the sign of the shop, if you click the sign it will turn into the default sign type (oak sign). This feature is only disponible for minecraft 1.14 and higer versions.
If enabled, the players will be able to sell every item to the shop.
By clicking the torch you will see how much money you will earn. This mode does not suport the content inside shulker boxes (at the moment), but it suports custom items that you can especify with /es admin addCustomItem <item price> while you have the item in your main hand. If you enable this the shop will set its mode to sell and will enable the admin mode.
The text that you set when using this option will be used in the sign when you use the variable %owner%.
If enabled the shop will not consume any items or money.
Players allowed
The players allowed are just players that can open and add or thake items from the chest that your shop is in.
/easyshops options
-Buy with chat:
If enabled when buying or selling insted of doing it with a menu you will do it with the chat.
-Limit to your stock:
If enabled when buying/selling with the menu you won't be able to select more items that you can sell or that fit in your inventory
-Limit to the amount you can pay:
If enabled when buying with the menu you won't be able to select more items that you can pay
-Create edite with chat:
If enabled insted of creating and editing shops with a menu you will do it with ths chat
-Resend message:
If enabled when ediiting the shop with the chat you will get again the message to edite the shop
-Use beam:
If enables a laser will gide you to a shop when using the /gotoshop comand, if not you will be gided by an invisible slime
Configuration file
-generate-items: Summons an item on top of a every shop
-check-shops: When the plugin starts checks all shops, if it finds a shops that is in a prohibited state the shop gets removed
-admin-shop-dont-get-messages: The shops in admin mode don't recive messages when someone buys/sells on them
-owner-can-buy-sell: Allows the owner of teh shop to buy/sell on it. If the shop is in admin mode owner-can-buy-sell-admin has preference
-owner-can-buy-sell-admin: Allows the owner of teh shop to buy/sell on it if its in admin mode
-use-roman-numbers: When displaying the a shop info in the chat use roman numbers
-default-options: Set the default options for all players
-banned-worlds: List with the name of the worlds where you can't create shops
-banned-items: List with the id of the items that can't be used to create a shop.
-create-edite: To configure the values of the panels of the menus when creating/editing
-buy-sell: To configure the values of the panels of the menus when buying/selling
-souds-and-particles: Customize the sounds and particles that the shops have
-enable-bStats: Enable bStats when the plugin starts
-check-update-on-join: When an op player or a player with the permission easyShops.checkUpdateOnJoin joins the server the plugin will check for an update, if it founs one, sends a message to the player
#Summons an item at the top of the shop
generate-items: true
#Check every shop when the plugin enables. Can cause lag
check-shops: true
#Don't send the messages when someone buys or sells
#to an admin shop
admin-shop-dont-get-messages: true
#The owner can buy/sell on his shops?
owner-can-buy-sell: false
#The owner can buy/sell on his admin shops?
owner-can-buy-sell-admin: true
#Then showing the information of an item
#while buying/selling show the
#level of the enchantments as roman numbers
use-roman-numbers: true
#Enable bStats
enable-bStats: true<br /><br />#When an op player or a player with the permission<br />#easyShops.checkUpdateOnJoin joins the server<br />#the plugin will check for an update<br />check-update-on-join: true
#Sounds and particles used
#for when the player interats
#with shops
souds-and-particles:
list-with-particles: https://tinyurl.com/y53375jf
list-with-sounds: https://tinyurl.com/pzfzn3j
particles:
block-action:
display: true
particle: BARRIER
amount: 1
shop-delete:
display: true
particle: EXPLOSION_NORMAL
amount: 20
shop-created-edited:
display: true
particle: VILLAGER_HAPPY
amount: 20
sounds:
sell:
display: true
sound: ENTITY_CHICKEN_EGG
volume: 100
pitch: 1
buy:
display: true
sound: ENTITY_ITEM_PICKUP
volume: 100
pitch: 1
block-action:
display: true
sound: ENTITY_VILLAGER_NO
volume: 100
pitch: 1
cancel-ation:
display: true
sound: BLOCK_CHEST_CLOSE
volume: 100
pitch: 1
click-inventory:
display: true
sound: BLOCK_DISPENSER_FAIL
volume: 100
pitch: 1
create-edite-shop:
display: true
sound: ENTITY_PLAYER_LEVELUP
volume: 100
pitch: 2
delete-shop:
display: true
sound: ENTITY_GENERIC_EXPLODE
volume: 100
pitch: 1
#Change the values of the options in the
#create and edite menus
#You can use decimals
create-edite:
white-concrete:
display: true
value: 1
magenta-concrete:
display: true
value: 5
light-blue-concrete:
display: true
value: 10
yellow-concrete:
display: true
value: 50
lime-concrete:
display: true
value: 100
pink-concrete:
display: true
value: 500
gray-concrete:
display: true
value: 1000
orange-concrete:
display: true
value: 5000
light-gray-concrete:
display: true
value: 10000
cyan-concrete:
display: true
value: 100000
#Change the values of the options in the
#buy and sell menus
#You can't use decimals
buy-sell:
white-concrete:
display: true
value: 1
magenta-concrete:
display: true
value: 5
light-blue-concrete:
display: true
value: 10
yellow-concrete:
display: true
value: 50
lime-concrete:
display: true
value: 100
pink-concrete:
display: true
value: 500
gray-concrete:
display: true
value: 1000
orange-concrete:
display: true
value: 5000
light-gray-concrete:
display: true
value: 10000
cyan-concrete:
display: true
value: 100000
default-options:
use-chat: false
limit-to-player-stock: true
limit-to-player-can-pay: true
create-edite-with-chat: false
#Worlds where you can't create shops
banned-worlds:
- 'worldName'
- 'worldName'
- 'worldName'
#Items that can't be used on shops
banned-items: #Check the items list in messages.yml
- 'itemId'
- 'itemId'
- 'itemId'
IMPORTANT:
In the messages.yml file there is a list with items, if you want to add an item to this list you must put the part in uppercase and with a low bar. For example, if you want to ban the diamond helmet you should go to the list of items and you will find: "DIAMOD_HELMET: Diamond helmet" In this list you must put the "DIAMOD_HELMET" not the "Diamond helmet"
Messages file
IMPORTANT: The variables between ! don't display with the message and need to be at the begining of the line. They are used to give the plugin information about what action it has to make. There can only be one for line.
IMPORTANT: NOT ALL THE MESSAGES HAVE VARIABLES. THIS IS A LIST WITH ALL THE MESSAGES THAT HAVE VARIABLES
commands:
--------+shopOptions:
------------+set-price, set-limit, change-owner, add-player, remove-player: %id% is replaced with the shop id
--------+info:
------------%version% is replaced by the plugin version
------------%creator% is replaced by the plugin creator (Nemo_64)
--------+version: %version% is replaced by the plugin version
--------+shopInfo:
------------%id% is replaced with the shop id
------------%item% is replaced with the shop item
------------%x% is replaced with the shop x coordinate
------------%y% is replaced with the shop y coordinate
------------%z% is replaced with the shop z coordinate
------------%world% is replaced with the shop world
------------%price% is replaced with the shop price
------------%mode% is replaced with the shop mode
------------%admin% is replaced with 'true' if the shop is in admin mode, 'false' if not
------------%allowed% is replaced with all the players that the shop has allowed
----+easyShops:
--------+options:
------------+edite-others-options: %player% is replaced with the player
--------+admin:
------------+getCustomItem:
----------------+give-item-to-others:
--------------------%player% is replaced with the player that gets the custom item
--------------------%amount% is replaced with the given amount
--------------------%customItem% is replaced with the custom item name
-----------------+give-item:
--------------------%customItem% is replaced with the custom item name
--------------------%amount% is replaced with the given amount
------------+checkShop:
----------------+checked: %id% is replaced with the shop id
----+searchShop:
--------+shop-found:
------------%shopX% is replaced with the shop x coordinate
------------%shopY% is replaced with the shop y coordinate
------------%shopZ% is replaced with the shop z coordinate
------------%shopWorld% is replaced with the shop world
------------%price% is replaced with the shop price
------------%id% is replaced with the shop id
----+not-item-found:
------------%mode% is replaced wit hthe shop mode
------------%item% is replaced with the shop item
--------not-item: %item% is replaced with the especified item
----+goToShop:
--------+no-world: %world% is replaced with the shop world
--------+marker:
------------+distance: %distance% is replaced with the distance between the marker and the shop
sign:
----+message-line-1, message-line-2, message-line-3 and message-line-4:
--------%mode% is replaced with the shop mode
--------%item% is replaced with the shop item
--------%price% is replaced with the shop price
--------%stock% is replaced with the shop stock
--------%owner% is replaced with the name of the owner of the shop
inventory-items:
----+options:
--------+use-chat.name, limit-to-player-stock.name, limit-to-player-can-pay.name: %option% is replaced with the enabled or disabled field depending if its enabled or disabled
----+create-shop, edit-shop:
--------+settingLimit: %limit% is replaced with teh shop limit
--------+sign:
------------+name, lore:
----------------%price% is replaced with the shop price
----------------%mode% is replaced wit hthe shop mode
----------------%item% is replaced with the shop item
----+buy-shop, sell-shop:
--------+sign:
------------+name, lore:
----------------%amount% is replaced with the amount of items to buy/sell
----------------%price% is replaced with the total price
buy-sell-with-chat:
----+enchantments:
--------+%enchantment% is replaced with the name of the enchantment
--------+%enchantmentLevel% is replaced with the level of the enchantment (in roman numbers if use-roman-numbers in the config is true)
----+lore: %line% is replaced with every line in the item lore
----+item:
--------%name% is replaced with the item name
--------%type% is replaced with the item type
--------%durability% is replaced with the item taken damage
--------%lore% is replaced with the item lore. Needs to be in a line alone
--------%enchantments% is replaced with the item enchanments. Needs to be in a line alone
----+message:
--------%mode% is replaced with the shop mode
--------%item% is replaced with the shop item
--------%price% is replaced with the shop price
--------%stock% is replaced with the shop stock
messages: (At the moment all messages in this path have no use, in future versions they will have)
----+someone-buy, someone-sell:
--------%player% is replaced with the player
--------%amount% is replaced with the amount
--------%item% is replaced with the item
--------%price% is replaced with the price
--------%id% is repaced with the shop id
--------%shopX% is replaced with the shop coordinate x
--------%shopY% is replaced with the shop coordinate y
--------%shopZ% is replaced with the shop coordinate z
--------%shopWorld% is replaced with the shop world
----+shop-out-of-stock:
--------%id% is repaced with the shop id
--------%shopX% is replaced with the shop coordinate x
--------%shopY% is replaced with the shop coordinate y
--------%shopZ% is replaced with the shop coordinate z
--------%shopWorld% is replaced with the shop world
----+change-owner:
--------%player% is replaced with the player
--------%id% is repaced with the shop id
edite-others-shop-message: %owner% is replaced with the owner of the shop
remaining-shops: %remainingShops% is replaced with the remaining amount of shops that tha player can create
complete-action:
----+buy, sell:
--------%amount% is replaced with the amount of items that have been sold/buyed
--------%item% is replaced with the item that have been sold/buyed
--------%price% is replaced with the price
----player-added,player-removed : %player% is replaced with the player that has been added/removed
----+change-owner: %owner% is replaced with the owner of the shop
----+change-price: %price% is replaced with the shop price
----+change-limit: %limit% is replaced with the shop limit
error:
----+cant-sell-that: %item% is replaced with the item
----+cant-sell-in-world: %world% is replaced with the world
----+already-added: %player% is replaced with the player that is added
----+change-price, change-limit: %message% is replaced with the message
----+no-one-removed: %player% is replaced with the player
+create-shop-with-chat: %item% is replaced with the item
edit-shop-with-chat:
----message:
--------%mode% is replaed with the mode
--------%limit% is replaced with the limit
--------%price% is replaced with the price
--------%item% is replaced with the item
--------%admin% tells if the shop is admin
--------%owner% is replaced with the shop owner
--------%playersAllowed% is replaced with the players allowed
--------%allowEverything% tells if the shop allows everything
--------%sign% is replaced with the sign type
--------%line1%...%line4% is replaced with the sign line
--------%adminName% is replaced with the owner name to display
--------%addPlayer% is replaced with the message edit-shop-with-hat.add-player and it becomes clickeable from the chat
--------%removePlayer% is replaced with the message edit-shop-with-chat.remove-player and it becomes clickeable from the chat
--------%delete% is replaced with the message edit-shop-with-chat.delete and it becomes clickeable from the chat
--------%switch%is replaced with the message edit-shop-with-chat.switchand it becomes clickeable from the chat
--------!mode! tells the plugin that when clicked the message the mode of the shop changes
--------!limit! tells the plugin that when clicked the message the limit of the shop changes
--------!mode! tells the plugin that when clicked the message the mode of the shop changes
--------!item! tells the plugin that when clicked the message the item of the shop changes
--------!admin! tells the plugin that when clicked the message the admin mode of the shop changes
--------!owner! tells the plugin that when clicked the message the owner of the shop changes
--------!delete! tells the plugin that when clicked the message the shop has to be removed. Needs the variable %delete%
--------!players! tells the plugin that when clicked the message is used to add and remove players. Needs the variables %addPlayer% and %removePlayer%
--------!lines! tells the plugin that when clicked the message the lines of the sign of the shop changes
--------!displayLine! tells the plugin that this line will not be shown if the editor doesn't have the permission "easyShops.adminMode"
--------!sign! tells the plugin that when clicked the sign type of the shop changes
--------!everyhting! tells the plugin that when clicked the allow everything mode of the shop changes
--------!adminName! tells the plugin that when clicked the name of the owner of the shop changes
Commands
easyShops <version/info/commands/options/shopinfo (shop id)/admin [reload/clearShops (accept)/checkShop (shop id)/checkShops]> Aliases: es
- vesion: Shown the plugin version
- info: Shows information of the plugin
- commands: Shows a list with all the commands and a little description of them
+ - shopinfo: Shows information of a shop
+ - options: Shows a menu to select the options
+ - admin: Subcommand made for admins
++ - addCustomItem: Registers the item in your main hand and makes it a custom item for the shops where you can sell everything
++ - removeCustomItem: Remove an item registered by the addCustomItem argument
++ - reload: Reloads the plugin
++ - clearShops: Remove all stores. Request a confirmation before performing the action
++ - checkShops: Check all shops, if it finds a shops that is in a prohibited state the shop gets removed (for example: selling a banned item)
++ - checkShop: Check a shops, if it is in a prohibited state the shop gets removed (for example: selling a banned item)
++ - checkUpdate: Checks for an update
searchshop [shop mode]: Search a shop that sells or buys the specified item. Aliases: ss
tptoshop [force]: Teleports to a shop. Aliases: ts
gotoshop : Shows how to get to a shop that is in the same world as tha player. Aliases: gs
shopoptions: The menu to edite a shop in a comand. Aliases: so
Permissions
IMPORTANT: Ops have all the permissions
-easyShops.editOthersShops: Allows to edit others shops
-easyShops.maxShops.n: Allows to have n shops
-easyShops.maxShops.unlimited: Allows to have unlimited shops
-easyShops.createDoubleShops: Allows to create shops in double chests
-easyShops.checkUpdateOnJoin: When the player jois the server, it will get a message if a new version is avilable
-easyShops.playerOptions.editeOthers: Allows to edit others options
-easyShops.playerOptions.chatToCreateEdite: Allows to change the option "Use the chat to create/edit shops"
-easyShops.playerOptions.chatToBuySell: Allows to change the option "Use the chat to buy/sell"
-easyShops.playerOptions.limitToPlayerStock: Allows to change the option "Limit to your stock"
-easyShops.playerOptions.limitToPlayerCanPay: Allows to change the option "Limit to amount you can pay"
-easyShops.playerOptions.changeGSOption: Allows to change the option "Use laser beam"
-easyShops.playerOptions.resendEditMessage: Allows to change the option "Resend message"
-easyShops.useShulkerBoxes.buysell: Allows to use shulker boxes for extra space when buying and selling
-easyShops.useShulkerBoxes.sellAll: Allows to use shulker boxes for extra space when selling in a show where you can sell everything
-easyShops.admin.adminMenu: Allows to enter to the admin menu when edditing a shop with the menu
-easyShops.admin.changeOwner: Allows to change the owner of the shop
-easyShops.admin.adminMode: Allows to put the shop in admin mode
-easyShops.admin.editLines: Allows to edite the lines of the shop
-easyShops.admin.editSign: Allows to edite the sign type of the shop
-easyShops.admin.editeOwnerName: Allows to modify the message that is replaced with the variable %owner% on the sign of the shop
-easyShops.admin.allowEverything: Allows to set the shop in allow everything mode. Since this mode also sets the shop in admin mode, the user also needs the permission easyShops.admin.adminMode for this permission to work
-easyShops.command.searchShop: Allows to use the comand /searchshop
-easyShops.command.tpToShop: Allows to use the comand /tptoshop
-easyShops.command.goToShop: Allows to use the comand /gotoshop
-easyShops.command.easyShop.options: Allows to use the comand /easyshops options
-easyShops.command.easyShop.version: Allows to use the comand /easyshops version
-easyShops.command.easyShop.info: Allows to use the comand /easyshops info
-easyShops.command.easyShop.commands: Allows to use the comand /easyshops commands
-easyShops.command.easyShop.shopInfo: Allows to use the comand /easyshops shopinfo
-easyShops.command.easyShop.admin.reload: Allows to use the comand /easyshops admin reload
-easyShops.command.easyShop.admin.clearShops: Allows to use the comand /easyshops admin clearShops
-easyShops.command.easyShop.admin.ckeckShops: Allows to use the comand /easyshops admin checkShops
-easyShops.command.easyShop.admin.checkShop: Allows to use the comand /easyshops admin checkShop
-easyShops.command.easyShop.admin.checkUpdate: Allows to use the comand /easyshops admin checkUpdate
-easyShops.command.easyShop.admin.addCustomItem: Allows to use the comand /easyshops admin addCustomItem
-easyShops.command.easyShop.admin.removeCustomItem: Allows to use the comand /easyshops admin removeCustomItem
-easyShops.command.easyShop.admin.getCustomItem: Allows to use the comand /easyshops admin getCustomItem
评论 0
登录后参与评分
还没有评论,来抢沙发吧