拍卖行
一个简洁、以图形用户界面为主的 Paper 1.21+ 拍卖行插件,使用 Vault 作为经济系统。
设计为轻量级、权限需求最小化,便于玩家和开发者使用。
要求
- Paper: 1.21+
- Vault(插件)
- 与 Vault 兼容的经济插件(例如 EssentialsX)
Vault 不存储余额。您必须安装一个经济提供者。
命令
/ah
打开全局拍卖行 GUI。
/ah sell <价格>
将玩家手中当前持有的物品上架出售。
- 物品不能是
AIR(空气)
- 物品不能被配置项禁止
- 价格必须在配置的范围内
- 受上架数量限制约束(普通用户与高级用户不同)
/ah storage
打开拍卖行仓库,显示:
- 在售商品(点击取消)
- 已取消/过期的退款(点击领取)
- 投递溢出物品(当购买时背包已满)
/ah resell
重新上架符合条件的已存储物品(高级功能 + 冷却时间)。
/ah <playerName>
打开一个仅显示该确切卖家名称发布的所有拍卖列表的视图。
- 区分大小写的匹配
- 不验证该名称是否属于真实玩家
- 如果不存在任何列表,GUI 将以空状态打开
/ah search <keyword> [maxPrice]
按关键词搜索拍卖列表。
- 不需要
minecraft: 命名空间
- 匹配:
- 材质键名/名称(例如
iron_ingot)
- 显示名称(自定义物品如 “Bulldozer” / “Drill”)
示例:
/ah search iron
/ah search net
/ah search note block 500 (高级价格过滤器)
高级功能
权限:
高级功能解锁:
- 增加列表上限(默认:20 vs 10)
/ah resell 和“全部重新上架”按钮
- 高级搜索价格过滤器(最大价格参数)
- 重新上架冷却时间(默认:60秒)
防刷屏保护:
- “等待 X 秒”提示消息对每位玩家每秒最多显示一次。
GUI 概览
拍卖行 GUI
- 分页显示
- 边缘玻璃边框
- 按钮:
- 刷新(下界之星)
- 存储(箱子)
- 上一页/下一页箭头(不可用时隐藏)
商品描述格式:
- 卖家名称:黄色
- 价格:绿色
- 剩余时间:红色
- 描述文本为非斜体
确认购买 GUI
购买逻辑:
- 在打开确认界面之前检查余额
- 购买成功后:
- 扣除相应金额
- 物品放入背包
- 若背包已满 → 物品存入存储区作为配送溢出
拍卖存储 GUI
- 标题:拍卖存储
- 显示:
- 进行中的拍卖(可取消)
- 已取消的退回物品
- 已过期的退回物品
- 溢出配送物品
- 返回箭头回到主菜单
/ah
状态显示颜色:
音效
- 成功上架:“叮”声
- 上架失败(达到上限 / 不允许):村民“否”音效
- 购买成功:村民“是”音效
- 卖家在成交时收到通知及音效
配置
主要配置选项包括:
- 普通/高级玩家的竞拍数量限制
- 最高售价限制
- 高级玩家重新上架冷却时间
- 禁止上架的物品列表
- GUI 音效开关(如果当前版本包含此功能)
(具体键名取决于您当前发布的 config.yml 文件。)
安装
- 将以下文件放入
plugins/ 目录:
- Vault
- 经济插件(例如 EssentialsX)
- Xiaoklunar Auction
- 启动服务器
- 配置
config.yml
- 分配高级权限(可选)
故障排除
已安装 Vault 但经济系统无法工作
Vault 需要一个经济提供插件(如 EssentialsX)。请检查控制台以查看经济注册日志。
“无效的 plugin.yml”
YAML 必须使用空格(禁止制表符),并且用法字符串应加上引号。
玩得开心
Auction
A clean, GUI-first Auction House plugin for Paper 1.21+ using Vault for economy.
Designed to be lightweight, permission-minimal, and easy for both players and developers.
Requirements
- Paper: 1.21+
- Vault (plugin)
- A Vault-compatible economy plugin (e.g., EssentialsX)
Vault does not store balances. You must install an economy provider.
Commands
/ah
Opens the global Auction House GUI.
/ah sell <price>
Lists the item currently in the player’s hand for sale.
- Item must not be
AIR
- Item must not be blocked by config
- Price must be within configured limits
- Listing limit enforced (normal vs premium)
/ah storage
Opens Auction Storage, showing:
- Active listings (click to cancel)
- Cancelled / expired returns (click to claim)
- Delivery overflow items (when inventory was full on purchase)
/ah resell
Relists eligible stored items (premium feature + cooldown).
/ah <playerName>
Opens a view showing only listings by that exact seller name.
- Case-sensitive matching
- Does not validate whether the name belongs to a real player
- If no listings exist, GUI opens empty
/ah search <keyword> [maxPrice]
Searches auction listings by keyword.
- No
minecraft: namespace required
- Matches:
- Material key/name (e.g.,
iron_ingot)
- Display name (custom items like “Bulldozer” / “Drill”)
Examples:
/ah search iron
/ah search net
/ah search note block 500 (premium price filter)
Premium Features
Permission:
Premium unlocks:
- Increased listing limit (default: 20 vs 10)
/ah resell and “Relist All” button
- Advanced search price filter (max price argument)
- Cooldown on relist (default: 60s)
Relist spam protection:
- “Wait X seconds” message is throttled to max once per second per player.
GUI Overview
Auction House GUI
- Paginated
- Edge glass border
- Buttons:
- Refresh (nether star)
- Storage (chest)
- Prev/Next page arrows (hidden when not usable)
Listing lore formatting:
- Seller name: Yellow
- Price: Green
- Expires in: Red
- Lore is non-italic
Confirm Purchase GUI
- Click listing → confirm screen:
- Green: Buy
- Red: Cancel (returns to
/ah)
Purchase logic:
- Checks balance before opening confirmation
- On successful buy:
- Money is withdrawn
- Item delivered to inventory
- If inventory full → moved to storage as delivery overflow
Auction Storage GUI
- Title: Auction Storage
- Shows:
- Active listings (cancelable)
- Cancelled returns
- Expired returns
- Overflow deliveries
- Back arrow returns to main
/ah
Status display:
- Cancelled: red
- Expired: red
- Delivery: yellow
Sounds
- Successful listing: “ding” sound
- Listing denied (limit reached / not allowed): villager “no”
- Successful purchase: villager “yes”
- Seller receives notification + sound on successful sale
Configuration
Key config options include:
- Listing limits for normal/premium
- Maximum sell price
- Premium relist cooldown
- Blocked item list
- GUI sound toggles (if present in your build)
(Exact keys depend on your current shipped config.yml.)
Installation
- Drop into
plugins/:
- Vault
- Economy plugin (e.g., EssentialsX)
- Xiaoklunar Auction
- Start server
- Configure
config.yml
- Assign premium permission (optional)
Troubleshooting
Vault installed but economy not working
Vault needs an economy provider (EssentialsX, etc.). Check console for economy registration logs.
“Invalid plugin.yml”
YAML must use spaces (no tabs) and usage strings should be quoted.
Have fun
评论 0
登录后参与评分
还没有评论,来抢沙发吧