ShopPlugin
概述
ShopPlugin 是一款功能强大、特性丰富的 Spigot/Bukkit 服务器经济插件,提供基于图形用户界面(GUI)的直观购物体验。该插件允许服务器管理员创建组织有序、多分区的商店,支持自定义物品、价格和视觉主题。玩家可通过交互式菜单系统轻松浏览和购买物品,并完全支持通过 Vault 经济集成实现的买卖交易。
该插件具备一个时尚且可定制的“双箱”交易菜单,玩家可在其中调整数量、在买入和卖出模式之间切换,并通过单次点击确认购买。凭借自动库存管理、价格计算以及全面的配置选项,ShopPlugin 将服务器的经济系统转变为一个引人入胜且用户友好的体系。
主要特性
- 多分区商店系统 - 将物品组织到自定义商店分区中,以提升导航效率
- 双重交易模式 - 在买入和卖出物品模式间切换,并带有视觉反馈
- 可定制 GUI - 完全主题化的菜单,支持玻璃板边框、自定义材质和颜色编码显示
- 经济集成 - 主要支持 Vault,可选兼容 Essentials
- 动态定价 - 为每个物品设置独立的买入价和卖出价
- 库存管理 - 自动检查空间并处理物品堆叠
- 批量出售 - 使用
/sellall 命令一次性出售所有指定类型的物品
- 实时配置 - 无需重启服务器即可重新加载商店配置
命令
| 命令 |
权限节点 |
描述 |
/shop |
shop.open |
打开包含所有可用分区的主商店菜单 |
/shopreload |
shop.reload |
重新加载所有商店和分区配置 |
/sellall |
shop.sellall |
自动出售背包中存在于商店内的所有物品 |
定制功能
交易菜单配置
- 菜单大小 - 可调整的容器大小(支持单箱和双箱)
- 按钮位置 - 自定义所有交互按钮的槽位位置
- 边框样式 - 控制玻璃板边框的显示及材质
- 颜色主题 - 更改激活/非激活按钮的颜色及玻璃板数据值
- 显示名称 - 完全可定制的按钮名称,支持颜色代码
- 价格显示 - 可在数量显示区域切换价格信息的可见性
商店物品配置
- 材质选择 - 支持任意 Minecraft 材质作为商店物品
- 自定义名称 - 支持颜色代码的显示名称,以增强视觉效果
- 每次交易数量 - 设置每种物品的默认数量
- 独立定价 - 为每个物品设置独特的买入/卖出价格
- 描述文本支持 - 可为物品工具提示添加描述性文字
全局设置
- 返回按钮 - 自定义材质、名称、位置及全局槽位强制应用
- 边框样式 - 对分区菜单进行全面边框定制
- 经济提供商 - 在 Vault 或 Essentials 之间选择
- 文件组织 - 自动分类至 Shops 和 Sections 文件夹
按钮定制
交易菜单中的每个按钮均可单独配置:
- 买入按钮 - 激活/非激活材质和颜色,附带切换描述文本
- 卖出按钮 - 交易模式下独立的激活/非激活样式
- 数量调节器 - 增加/减少按钮,支持自定义材质
- 确认按钮 - 带有自定义样式的视觉确认元素
- 取消按钮 - 风格化的退出按钮,外观可配置
权限
shop.open - 允许玩家打开和浏览商店
shop.reload - 允许重新加载所有配置
shop.sellall - 允许使用批量出售命令
安装
- 将 JAR 文件放入服务器的
plugins 文件夹
- 确保已安装 Vault 且有一个活跃的经济提供商
- 重启服务器
- 在生成的 ShopPlugin 文件夹中定制配置
- 使用
/shopreload 应用更改而无需重启
ShopPlugin
Overview
ShopPlugin is a powerful, feature-rich economy plugin for Spigot/Bukkit servers that provides an intuitive GUI-based shopping experience. This plugin allows server administrators to create organized, multi-section shops with custom items, prices, and visual theming. Players can easily browse and purchase items through an interactive menu system, with full support for buying and selling transactions powered by Vault economy integration.
The plugin features a sleek, customizable double-chest transaction menu that lets players adjust quantities, toggle between buying and selling modes, and confirm purchases with a single click. With automatic inventory management, price calculations, and comprehensive configuration options, ShopPlugin transforms your server's economy into an engaging and user-friendly system.
Key Features
- Multi-Section Shop System - Organize items into custom shop sections for better navigation
- Dual Transaction Mode - Toggle between buying and selling items with visual feedback
- Customizable GUI - Fully themed menus with support for glass pane borders, custom materials, and color-coded displays
- Economy Integration - Primary support for Vault with optional Essentials compatibility
- Dynamic Pricing - Set individual buy and sell prices for each item
- Inventory Management - Automatic space checking and item stack handling
- Bulk Selling - Sell all items of a type at once with the
/sellall command
- Real-time Configuration - Reload shop configurations without server restart
Commands
| Command |
Permission |
Description |
/shop |
shop.open |
Opens the main shop menu with all available sections |
/shopreload |
shop.reload |
Reloads all shop and section configurations |
/sellall |
shop.sellall |
Automatically sells all items in inventory that are in the shop |
Customization Features
Transaction Menu Configuration
- Menu Size - Adjustable inventory size (supports single and double chests)
- Button Positioning - Customize slot positions for all interactive buttons
- Border Styling - Control glass pane border display and materials
- Color Themes - Change active/inactive button colors and glass pane data values
- Display Names - Fully customizable button names with color code support
- Price Display - Toggle price information visibility on the quantity display
Shop Item Configuration
- Material Selection - Any Minecraft material for shop items
- Custom Names - Display names with color codes for visual appeal
- Quantity Per Transaction - Set default amounts for each item type
- Individual Pricing - Unique buy/sell prices for each item
- Lore Support - Add descriptive text to item tooltips
Global Settings
- Back Button - Customize material, name, position, and global slot enforcement
- Border Styling - Full border customization for section menus
- Economy Provider - Choose between Vault or Essentials
- File Organization - Automatic categorization into Shops and Sections folders
Button Customization
Each button in the transaction menu can be individually configured:
- Buy Button - Active/inactive materials and colors with toggle lore
- Sell Button - Separate active/inactive styling for transaction mode
- Quantity Adjuster - Increment/decrement buttons with custom materials
- Confirm Button - Visual confirmation element with custom styling
- Cancel Button - Styled exit button with configurable appearance
Permissions
shop.open - Allows players to open and browse the shop
shop.reload - Allows reloading of all configurations
shop.sellall - Allows using the bulk sell command
Installation
- Place the JAR file in your server's
plugins folder
- Ensure Vault is installed and an economy provider is active
- Restart the server
- Customize configurations in the generated ShopPlugin folder
- Use
/shopreload to apply changes without restarting
评论 0
登录后参与评分
还没有评论,来抢沙发吧