获取支持、请求新功能,或想要报告错误?欢迎前往我的 Discord 服务器!
功能
- 完全基于 GUI: 所有玩家与商店的交互都通过易于使用的图形界面完成。
- Vault 经济支持: 通过 Vault 与服务器现有的经济插件集成,处理所有交易。
- 分类商店: 将物品组织到自定义类别中,便于浏览。
- 分页支持: 支持大型商店和类别,提供直观的分页导航。
- 交互式购买 GUI: 玩家可以使用 +/- 按钮选择购买数量,并确认或拒绝购买。
- 出售界面: 允许玩家出售其背包中已在商店配置的物品。
- 物品搜索: 玩家可以跨所有商店类别搜索特定物品。
- 价格信息: 玩家可以快速查看任何物品的买入价和卖出价。
- 自定义物品支持: 轻松向商店添加具有自定义名称、描述(lore)和 NBT 数据的物品。
- 管理员管理命令: 一套供管理员直接管理商店类别、物品和价格的命令。
- GUI 保护: 防止玩家直接从商店 GUI 中取出物品。
- 愿望单系统: 使用
/shop wishlist <item>将物品添加到个人愿望单以跟踪它们。 - 批量出售物品: 使用
/shop sellall一次性出售所有可出售的物品。 - 动态定价: 基于需求的动态定价系统使价格发生波动。
- 类别权限: 根据玩家权限限制访问某些类别。
- 折扣系统: 根据玩家权限对购买应用百分比折扣。
- 拍卖行: 完整的拍卖行系统,可通过
/auctionhouse或/ah访问。
玩家命令
-
/shop- 描述: 打开主商店 GUI,显示所有可用类别。
- 别名:
/s
-
/shop balance- 描述: 显示您在服务器经济中的当前余额。
-
/shop reload- 描述: 重新加载插件的配置文件和商店数据。(需要权限)
-
/shop price <item>- 描述: 显示指定物品的买入和卖出价格信息。
-
/shop browse <category>- 描述: 直接在特定类别处打开商店 GUI。
-
/shop search <item>- 描述: 打开一个 GUI,显示跨所有类别匹配您搜索词的所有物品。
-
/shop sell- 描述: 打开一个界面,您可以在其中出售背包中已在商店配置的物品。
-
/shop wishlist <item>- 描述: 将物品添加到您的个人愿望单,当价格下降时会通知您。
-
/shop sellall- 描述: 在确认提示后,一次性出售背包中的所有可出售物品。
-
/auctionhouse或/ah- 描述: 打开拍卖行 GUI,您可以在其中浏览、购买和拍卖物品。
管理员命令
-
/shopadmin- 描述: 所有商店管理功能的基础命令。
- 别名:
/sa
-
/auctionhouse sell <price> <amount>- 描述: 在拍卖行中以指定价格和数量出售您手中的物品。
- 别名:
/ah sell <price> <amount>
-
/shopadmin reload- 描述: 重新加载所有商店配置文件(
shop.yml和custom_items.yml)。
- 描述: 重新加载所有商店配置文件(
-
/shopadmin add <category> <item_identifier> <buy_price> <sell_price>- 描述: 向指定的商店类别添加新物品。
item_identifier可以是标准 Minecraft 材质名称,或者是您已注册的自定义物品的 ID。
- 描述: 向指定的商店类别添加新物品。
-
/shopadmin remove <category> <item_identifier>- 描述: 从指定的商店类别中移除物品。
-
/shopadmin setprice <category> <item_identifier> <new_buy_price> <new_sell_price>- 描述: 更改类别中现有物品的买入和卖出价格。
-
/shopadmin createcategory <name> <icon_material> <slot_number>- 描述: 创建一个带有给定名称、图标及其在主商店 GUI 中位置的新商店类别。
-
/shopadmin deletecategory <name>- 描述: 删除整个商店类别及其中的所有物品。
自定义物品命令
/customitem add <id>- 描述: 将您当前在主手中持有的物品注册为具有唯一标识符(
id)的自定义物品。这允许您向商店添加具有自定义名称、描述(lore)和 NBT 数据的物品。
- 描述: 将您当前在主手中持有的物品注册为具有唯一标识符(
权限
-
economyshop999.admin- 描述: 授予所有
/shopadmin和/customitem命令的访问权限。 - 默认: 操作员 (op)
- 描述: 授予所有
-
economyshop999.reload- 描述: 允许使用
/shop reload命令。 - 默认: 操作员 (op)
- 描述: 允许使用
-
economyshop999.category.<category_name>- 描述: 启用类别权限时,授予访问特定商店类别的权限。
- 默认: 无(默认情况下所有玩家都可以访问所有类别)
-
economyshop999.category.*- 描述: 启用类别权限时,授予访问所有商店类别的权限。
- 默认: 无
-
economyshop999.discount.vip- 描述: 启用折扣系统时,授予购买时的 VIP 折扣百分比。
- 默认: 无
-
economyshop999.discount.member- 描述: 启用折扣系统时,授予购买时的会员折扣百分比。
- 默认: 无
配置
首次运行时,将在服务器的 plugins 目录中创建一个名为 EconomyShop999 的文件夹。在其中,您将找到:
-
shop.yml:- 此文件用于定义商店的分类及其包含的物品。它采用清晰的 YAML 结构。
- 每个分类都包含
name(名称)、icon(Minecraft 材质名称)、slot(在主 GUI 中的位置)以及一个items列表。 - 物品使用以下格式定义:
ITEM_IDENTIFIER BUY_PRICE SELL_PRICE。ITEM_IDENTIFIER可以是标准的 Minecraft 材质名称(例如STONE、DIAMOND_SWORD),也可以是通过/customitem add注册的自定义物品的id。BUY_PRICE是玩家购买该物品需支付的价格。设置为-1表示该物品不可购买。SELL_PRICE是玩家出售该物品可获得的价格。设置为-1表示该物品不可出售。
-
custom_items.yml:- 此文件存储通过
/customitem add命令注册的任何自定义物品的序列化数据。通常无需手动编辑此文件。
- 此文件存储通过
-
auction.yml:- 此文件存储所有活跃的拍卖数据。它由插件自动生成和管理。
-
wishlist.yml:- 此文件存储玩家的愿望单数据。它由插件自动生成和管理。
高级配置选项
在 shop.yml 文件中还提供了其他配置选项:
dynamic-pricing.enabled: 启用基于物品需求波动的动态定价。dynamic-pricing.multiplier: 动态定价的最大调整百分比(默认值:0.05,即 5%)。dynamic-pricing.base-demand: 价格变动为 0% 的基础需求阈值(默认值:100)。category-permissions.enabled: 启用基于权限的分类访问限制。discounts.enabled: 启用针对特定玩家组的折扣系统。discounts.vip: VIP 玩家的折扣百分比(默认值:0.10,即 10%)。discounts.member: 会员玩家的折扣百分比(默认值:0.05,即 5%)。bank-interest.enabled: 启用或禁用银行利息系统。bank-interest.percentage: 应用于银行账户的利率百分比(默认值:0.01,即 1%)。bank-interest.interval-hours: 应用利息的时间间隔(默认值:24 小时)。
Get Support, request a new feature, or want to report a bug? Then feel free to head on over to my discord!
Features
- Fully GUI-Based: All player interactions with the shop are done through easy-to-use graphical interfaces.
- Vault Economy Support: Integrates with your server's existing economy plugin via Vault for all transactions.
- Categorized Shops: Organize your items into custom categories for easy browsing.
- Pagination: Supports large shops and categories with intuitive page navigation.
- Interactive Buying GUI: Players can select quantities to buy with +/- buttons and confirm or decline purchases.
- Selling Interface: Allows players to sell items from their inventory that are configured in the shop.
- Item Search: Players can search for specific items across all shop categories.
- Price Information: Players can quickly check the buy and sell prices of any item.
- Custom Item Support: Easily add items with custom names, lore, and NBT data to your shop.
- Admin Management Commands: A suite of commands for administrators to manage shop categories, items, and prices directly.
- GUI Protection: Prevents players from taking items directly from shop GUIs.
- Wishlist System: Add items to your personal wishlist with
/shop wishlist <item>to track them. - Sell All Items: Sell all sellable items at once with
/shop sellall. - Dynamic Pricing: Prices fluctuate based on demand with dynamic pricing system.
- Category Permissions: Restrict access to certain categories based on player permissions.
- Discount System: Apply percentage discounts to purchases based on player permissions.
- Auction House: Full auction house system accessible via
/auctionhouseor/ah.
Player Commands
-
/shop- Description: Opens the main shop GUI, displaying all available categories.
- Aliases:
/s
-
/shop balance- Description: Displays your current balance in the server's economy.
-
/shop reload- Description: Reloads the plugin's configuration files and shop data. (Requires permission)
-
/shop price <item>- Description: Shows the buy and sell price information for a specified item.
-
/shop browse <category>- Description: Opens the shop GUI directly to a specific category.
-
/shop search <item>- Description: Opens a GUI displaying all items matching your search term across all categories.
-
/shop sell- Description: Opens an interface where you can sell items from your inventory that are configured in the shop.
-
/shop wishlist <item>- Description: Adds an item to your personal wishlist that notifies you when the price drops.
-
/shop sellall- Description: Sells all sellable items in your inventory at once with a confirmation prompt.
-
/auctionhouseor/ah- Description: Opens the auction house GUI where you can browse, buy, and sell items at auction.
Admin Commands
-
/shopadmin- Description: Base command for all administrative shop functions.
- Aliases:
/sa
-
/auctionhouse sell <price> <amount>- Description: Sell the item in your hand at the specified price and amount in the auction house.
- Aliases:
/ah sell <price> <amount>
-
/shopadmin reload- Description: Reloads all shop configuration files (
shop.ymlandcustom_items.yml).
- Description: Reloads all shop configuration files (
-
/shopadmin add <category> <item_identifier> <buy_price> <sell_price>- Description: Adds a new item to a specified shop category. The
item_identifiercan be a standard Minecraft material name or the ID of a custom item you've registered.
- Description: Adds a new item to a specified shop category. The
-
/shopadmin remove <category> <item_identifier>- Description: Removes an item from a specified shop category.
-
/shopadmin setprice <category> <item_identifier> <new_buy_price> <new_sell_price>- Description: Changes the buy and sell prices for an existing item within a category.
-
/shopadmin createcategory <name> <icon_material> <slot_number>- Description: Creates a new shop category with a given name, icon, and its position in the main shop GUI.
-
/shopadmin deletecategory <name>- Description: Deletes an entire shop category and all items within it.
Custom Item Commands
/customitem add <id>- Description: Registers the item you are currently holding in your main hand as a custom item with a unique identifier (
id). This allows you to add items with custom names, lore, and NBT data to your shop.
- Description: Registers the item you are currently holding in your main hand as a custom item with a unique identifier (
Permissions
-
economyshop999.admin- Description: Grants access to all
/shopadminand/customitemcommands. - Default: Operators (op)
- Description: Grants access to all
-
economyshop999.reload- Description: Allows use of the
/shop reloadcommand. - Default: Operators (op)
- Description: Allows use of the
-
economyshop999.category.<category_name>- Description: Grants access to a specific shop category when category permissions are enabled.
- Default: None (all players can access all categories by default)
-
economyshop999.category.*- Description: Grants access to all shop categories when category permissions are enabled.
- Default: None
-
economyshop999.discount.vip- Description: Grants VIP discount percentage on purchases when discount system is enabled.
- Default: None
-
economyshop999.discount.member- Description: Grants member discount percentage on purchases when discount system is enabled.
- Default: None
Configuration
Upon first run, a folder named EconomyShop999 will be created in your server's plugins directory. Inside, you will find:
-
shop.yml:- This file is where you define your shop's categories and the items within them. It uses a clear YAML structure.
- Each category has a
name,icon(Minecraft material name),slot(position in the main GUI), and a list ofitems. - Items are defined using the format:
ITEM_IDENTIFIER BUY_PRICE SELL_PRICE.ITEM_IDENTIFIERcan be a standard Minecraft material name (e.g.,STONE,DIAMOND_SWORD) or theidof a custom item registered via/customitem add.BUY_PRICEis the price players pay to buy the item. Set to-1to make an item unpurchasable.SELL_PRICEis the price players receive for selling the item. Set to-1to make an item unsellable.
-
custom_items.yml:- This file stores the serialized data of any custom items you register using the
/customitem addcommand. You typically won't need to edit this file manually.
- This file stores the serialized data of any custom items you register using the
-
auction.yml:- This file stores all active auction data. It's automatically generated and managed by the plugin.
-
wishlist.yml:- This file stores player wishlist data. It's automatically generated and managed by the plugin.
Advanced Configuration Options
Additional configuration options are available within the shop.yml file:
dynamic-pricing.enabled: Enables dynamic pricing that fluctuates based on item demand.dynamic-pricing.multiplier: Maximum percentage adjustment for dynamic pricing (default: 0.05 for 5%).dynamic-pricing.base-demand: Base demand threshold for 0% price change (default: 100).category-permissions.enabled: Enables permission-based category access restrictions.discounts.enabled: Enables discount system for specific player groups.discounts.vip: Discount percentage for VIP players (default: 0.10 for 10%).discounts.member: Discount percentage for member players (default: 0.05 for 5%).bank-interest.enabled: Enables or disables the bank interest system.bank-interest.percentage: Percentage interest rate applied to bank accounts (default: 0.01 for 1%).bank-interest.interval-hours: Time interval between interest applications (default: 24 hours).
下载 EconomyShop999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EconomyShop999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EconomyShop999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EconomyShop999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EconomyShop999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EconomyShop999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EconomyShop999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EconomyShop999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
新功能
- 新增玩家自营商店系统,允许玩家创建并管理自己的商店
- 新增套装系统,包含初始套装、每日套装和 VIP 套装
- 新增商店物品的模糊搜索功能,支持部分名称匹配
- 新增批量购买和销售功能,在图形界面中支持按住 Shift 键点击
- 新增子分类支持,用于优化商店组织结构
- 新增全息排行榜,展示余额最高、买家最多和卖家最多的玩家
- 新增 PlaceholderAPI 集成,提供商店统计数据的占位符
错误修复
- 修复了动态定价乘数在调整价格时未遵守最小值限制的问题
- 修复了在高服务器负载下拍卖 ID 生成存在冲突风险的问题
- 修复了未强制执行每位玩家最大拍卖数量限制的问题
- 修复了在出售所有物品时可能出现的并发修改异常
- 修复了每次玩家加入服务器时都保存每日奖励配置导致性能问题的情况
- 修复了配置文件中缺少默认折扣值的问题
- 修复了在没有交易数据时排行榜命令报错的问题
- 修复了购买界面中折扣计算应用于总价而非单价的问题
- 修复了银行利息错误地应用于离线玩家的问题
- 修复了过期拍卖的返还物品为离线玩家无限累积的问题
- 修复了调整后价格未验证负数值的问题
- 修复了拍卖时长在配置文件与常量之间不一致的问题
- 修复了自定义物品加载时未能正确处理缺失配置节的问题
- 修复了 Vault 经济插件银行支持功能实现不完整的问题
- 修复了每日奖励时间戳随时间推移导致配置文件膨胀的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧