? 出售 GUI
一款 Donut SMP 风格的出售菜单——放入物品,关闭界面,即可收款。无需确认按钮,也无需额外命令。
⚡ 工作原理
运行 /sell 打开暂存库存。拖入你想要出售的物品,然后关闭 GUI ——在关闭的瞬间,内部的所有物品会自动出售,并通过 Vault 将金币存入你的账户。
任何未配置价格的物品会直接退回你的背包,而不会消失——绝不会静默销毁任何无定价价值的物品。
?️ 出售前查看价格
/worth — 浏览分页的每种有价物品目录,悬停可查看单价
/worth <material> — 即时聊天回复特定物品的价格,支持输入时 Tab 补全
? 按类别而非统一费率对 256 种物品定价
废料方块价格低廉,矿石根据稀有度缩放,工具和护甲根据材质等级缩放,终局稀有物品(下界之星、不死图腾、鞘翅)也据此定价。所有价格均可在 config.yml 中自行调整,且设有 default-worth 默认值作为后备,这意味着即使未单独列出,理论上任何物品都可出售。
? 逐项列出的出售摘要
每次出售后获取完整明细——包括总收入,以及每项售出物品及其价格的逐行列表。
? 依赖要求
| 依赖项 |
原因 |
| Vault |
桥接至你的经济插件 |
| 兼容 Vault 的经济插件(例如 EssentialsX) |
处理支付 |
⚙️ 基于 Paper 26.2 构建
? Sell GUI
A Donut SMP-style sell menu — drop items in, close the menu, get paid. No confirm button, no second command.
⚡ How it works
Run /sell to open the staging inventory. Drag in whatever you want to sell, then close the GUI — everything inside sells automatically the instant it closes, and the money lands in your account via Vault.
Anything without a configured price gets handed straight back to your inventory instead of vanishing — nothing of unpriced value is ever silently destroyed.
?️ Check prices before you sell
/worth — browse a paginated catalog of every priced item, hover to see the price per item
/worth <material> — instant chat answer for one specific item, tab-completes as you type
? 256 items priced by category, not a flat rate
Junk blocks are cheap, ores scale with rarity, tools and armor scale by material tier, and end-game rarities (nether star, totem, elytra) are priced like it. Every price is yours to retune in config.yml, and a default-worth fallback means literally anything is sellable even if it's not individually listed.
? Sell summary, itemized
Get a full breakdown after every sale — total earned, plus a line-by-line list of what sold and for how much.
? Requirements
| Requirement |
Why |
| Vault |
Bridges to your economy plugin |
| A Vault-compatible economy (e.g. EssentialsX) |
Handles the payout |
⚙️ Built for Paper 26.2
评论 0
登录后参与评分
还没有评论,来抢沙发吧