

如果您有任何建议或修改意见,请通过 Discord 联系我。

- DonutSell 一款简单的插件,使用 Vault 或其他任何经济插件创建售卖系统,支持倍率设置、完整的自定义菜单以及受 DrDonutt 拥有的 DonutSMP 启发的价值菜单。

-
完全自定义: 出售菜单和价格菜单均由文件构建。支持任意槽位、槽位范围(如 0-8,18-26)、每次点击的动作、条件、物品名称、描述文本、发光效果、附魔、头颅以及自定义模型数据。之前所有可用的按键功能依然有效。
-
Vault 或命令经济系统: 默认使用 Vault,或禁用它并通过配置文件中的任何自定义控制台指令发放货币。
-
可配置的物品价格: 所有价格均存储在 prices.yml 中,药水与附魔书各自拥有按等级设定的独立价格,任何未配置的物品默认以 1 的价格出售。
-
现金倍增器: 使用 /donutsell multiplier set|add|remove|clear <玩家> <数值> [时间] 命令,或拥有 donutsell.multiplier.2 等权限来设置倍增器。支持限时、永久以及用于计分板的 %donutsell_multiplier%。
-
关闭时出售: 菜单默认在关闭时出售其中的物品,与以往行为一致。在配置文件中将 sell-on-close 设置为 off,则物品会返还给玩家。
-
潜影盒: 箱子按其自身价格出售,内部物品也一并出售,嵌套深度最多为 5 层。黑名单中的物品或价格为零的物品会被退回,绝不会销毁。
-
黑名单系统: 管理员可以将物品加入黑名单以防止其被出售,被拉黑的物品会安全地返还给玩家,而非移除。
-
防刷机制: 售卖菜单是一个安全区域。Shift 点击、拖拽、交换点击、丢弃和关闭等操作均经过处理,因此无法复制物品,也无法销毁物品。
-
价值菜单: 通过 GUI 浏览所有价格,支持分类、筛选以及按最高价格、最低价格或名称排序。
-
紧凑货币格式: 价格和出售总额以简洁的紧凑格式显示,例如 1K、1.2M、3B 或 1T。
-
支持 Folia: 底层使用真正的区域调度器,同一个 JAR 文件即可在 Folia、Paper、Purpur、Spigot 和 Bukkit 1.21 及更高版本上运行。
-
PlaceholderAPI 支持: 可以使用如 %donutsell_netherite_block_price% 这样的占位符在任何地方显示物品价格。

命令
| 指令 |
权限 |
描述 |
/sell |
所有人 |
打开出售菜单 |
/worth |
所有人 |
打开价格菜单 |
/worth <item> |
所有人 |
显示单个物品的价格 |
/donutsell |
所有人 |
显示插件信息及可用指令 |
/donutsell reload |
donutsell.reload |
重新加载所有文件 |
/donutsell item <material> price <set|add|subtract> <amount> |
donutsell.item.priceset |
更改 prices.yml 中的价格 |
/donutsell item <material> <blacklist|whitelist> |
donutsell.item.blacklist |
禁止或允许出售某物品 |
/donutsell multiplier <set|add|remove|clear> <player> <value> [30m|1h|1d|perm] |
donutsell.multiplier.manage |
修改玩家的收益倍率 |
权限
| 权限节点 |
默认值 |
描述 |
donutsell.sell.use |
所有人 |
使用 /sell 及出售菜单 |
donutsell.worth.use |
所有人 |
使用 /worth 及价格菜单 |
donutsell.reload |
OP |
/donutsell reload |
donutsell.item.priceset |
OP |
设置、增加或减少价格 |
donutsell.item.blacklist |
OP |
将物品加入黑名单或白名单 |
donutsell.multiplier.manage |
OP |
给予、移除或清除倍率 |
donutsell.multiplier.<value> |
OP |
玩家的永久倍率,例如 donutsell.multiplier.2 |
donutsell.admin |
OP |
一次性拥有所有管理指令权限 |
占位符
| 占位符 |
描述 |
%donutsell_<material>_price% |
物品价格,例如 %donutsell_diamond_price% |
%donutsell_potion_<type>_<level>_price% |
药水价格,例如 %donutsell_potion_speed_1_price% |
%donutsell_splash_potion_<type>_<level>_price% |
喷溅型药水价格 |
%donutsell_lingering_potion_<type>_<level>_price% |
滞留型药水价格 |
%donutsell_enchanted_book_<enchantment>_<level>_price% |
附魔书价格,例如 %donutsell_enchanted_book_sharpness_5_price% |
%donutsell_multiplier% |
玩家当前的倍率 |

- 在你的
plugins 文件夹中会自动创建一个名为 DonutSell 的文件夹。每个文件都简洁明了,直击重点。
config.yml:经济设置、默认价格和关闭时出售
guis/sell.yml:出售菜单
guis/worth.yml:价格菜单
guis/worth-filter.yml:过滤分类
prices.yml:所有物品价格
messages.yml:所有消息和音效
blacklist.yml:黑名单
multipliers.yml:保存的倍率
config.yml
config-version: "1.6"
vault-economy: true
economy-hook: "auto"
money-give: "example give [user] [amount]"
default-price: 1
prices-multiplier: 1
sell-on-close: true
guis/sell.yml
command: "sell"
aliases: []
title: "&8Sell"
rows: 6
open-sound:
enabled: false
sound: "block.chest.open"
volume: 1.0
pitch: 1.0
close-sound:
enabled: false
sound: "block.chest.close"
volume: 1.0
pitch: 1.0
confirm-button:
enabled: true
material: "LIME_STAINED_GLASS_PANE"
name: "�FF00$ &f[amount]"
row: 6
slot: 9
lore:
enabled: true
lines:
- "&7Click to sell items"
items: []
prices.yml
DIAMOND: 120
DIAMOND_BLOCK: 1080
EMERALD: 90
NETHERITE_INGOT: 6000
SPAWNER: 2500
ENCHANTED_BOOK:
MENDING:
1: 2500
SHARPNESS:
5: 400
POTION:
HEALING:
1: 60
2: 150

- 下载 DonutSell 的最新版本。
- 放置
.jar 文件到服务器的 plugins 文件夹中。
- 重启你的服务器。
- 完成!除了价格外无需任何设置,其他一切已有默认值。

© 保留所有权利。由 SirSnaryo 创建。


Please contact me on Discord if you have any suggestions or edits.

- DonutSell A simple plugin creates a Sell System using vault or any other economy plugin with multipliers, a full custom menu and a worth menu inspired by DonutSMP owned by DrDonutt

- Full Customization: The sell menu and the price menu are both built from files. Any slot you want, slot ranges like
0-8,18-26, per click actions, conditions, item names, lore, glow, enchantments, skulls and custom model data. Every key that worked before still works.
- Vault or Command Economy: Use Vault by default, or disable it and give money through any custom console command from config.
- Configurable Item Prices: Every price lives in
prices.yml, potions and enchanted books have their own price per level, and any unconfigured item automatically sells for the default price of 1.
- Cash Multipliers: Give multipliers with
/donutsell multiplier set|add|remove|clear <player> <value> [time], or with permissions like donutsell.multiplier.2. Timed ones, permanent ones, and %donutsell_multiplier% for scoreboards.
- Sell On Close: The menu sells what is inside when it closes by default, exactly like it always did. Turn
sell-on-close off in config and the items go back to the player instead.
- Shulker Boxes: The box sells for its own price and everything inside sells too, nested boxes up to 5 deep. Blacklisted or zero price items inside are handed back, never destroyed.
- Blacklist System: Operators can blacklist items from being sold, and blacklisted items are safely returned to the player instead of being removed.
- Dupe Safe: The sell menu is a safe zone. Shift clicking, dragging, swap clicks, dropping and closing are all handled, so items cannot be duplicated and cannot be destroyed.
- Worth Menu: Browse every price with categories, filters and sorting by highest price, lowest price or name, all from the GUI.
- Compact Money Format: Prices and sell totals are shown in clean compact format like
1K, 1.2M, 3B, or 1T.
- Folia Supported: Real region schedulers behind it, the same jar runs on Folia, Paper, Purpur, Spigot and Bukkit 1.21 and newer.
- PlaceholderAPI Support: Item prices can be displayed anywhere with placeholders like
%donutsell_netherite_block_price%.

Commands
| Command |
Access |
Description |
/sell |
Everyone |
Opens the sell menu |
/worth |
Everyone |
Opens the price menu |
/worth <item> |
Everyone |
Shows the price of one item |
/donutsell |
Everyone |
Shows plugin info and available commands |
/donutsell reload |
donutsell.reload |
Reloads every file |
/donutsell item <material> price <set|add|subtract> <amount> |
donutsell.item.priceset |
Changes a price in prices.yml |
/donutsell item <material> <blacklist|whitelist> |
donutsell.item.blacklist |
Stops an item from being sold, or allows it again |
/donutsell multiplier <set|add|remove|clear> <player> <value> [30m|1h|1d|perm] |
donutsell.multiplier.manage |
Changes what a player earns |
Permissions
| Permission |
Default |
Description |
donutsell.sell.use |
Everyone |
Use /sell and the sell menu |
donutsell.worth.use |
Everyone |
Use /worth and the price menu |
donutsell.reload |
OP |
/donutsell reload |
donutsell.item.priceset |
OP |
Set, add to or subtract from a price |
donutsell.item.blacklist |
OP |
Blacklist or whitelist an item |
donutsell.multiplier.manage |
OP |
Give, take or clear a multiplier |
donutsell.multiplier.<value> |
OP |
Permanent multiplier for a player, like donutsell.multiplier.2 |
donutsell.admin |
OP |
Every admin command at once |
Placeholders
| Placeholder |
Description |
%donutsell_<material>_price% |
Price of an item, like %donutsell_diamond_price% |
%donutsell_potion_<type>_<level>_price% |
Potion price, like %donutsell_potion_speed_1_price% |
%donutsell_splash_potion_<type>_<level>_price% |
Splash potion price |
%donutsell_lingering_potion_<type>_<level>_price% |
Lingering potion price |
%donutsell_enchanted_book_<enchantment>_<level>_price% |
Enchanted book price, like %donutsell_enchanted_book_sharpness_5_price% |
%donutsell_multiplier% |
The player's current multiplier |

- A folder named
DonutSell is created in your plugins folder automatically. Every file is plain and clean, straight to the point.
config.yml economy, default price and sell on close
guis/sell.yml the sell menu
guis/worth.yml the price menu
guis/worth-filter.yml the filter categories
prices.yml every item price
messages.yml every message and sound
blacklist.yml the blacklist
multipliers.yml saved multipliers
config.yml
config-version: "1.6"
vault-economy: true
economy-hook: "auto"
money-give: "example give [user] [amount]"
default-price: 1
prices-multiplier: 1
sell-on-close: true
guis/sell.yml
command: "sell"
aliases: []
title: "&8Sell"
rows: 6
open-sound:
enabled: false
sound: "block.chest.open"
volume: 1.0
pitch: 1.0
close-sound:
enabled: false
sound: "block.chest.close"
volume: 1.0
pitch: 1.0
confirm-button:
enabled: true
material: "LIME_STAINED_GLASS_PANE"
name: "�FF00$ &f[amount]"
row: 6
slot: 9
lore:
enabled: true
lines:
- "&7Click to sell items"
items: []
prices.yml
DIAMOND: 120
DIAMOND_BLOCK: 1080
EMERALD: 90
NETHERITE_INGOT: 6000
SPAWNER: 2500
ENCHANTED_BOOK:
MENDING:
1: 2500
SHARPNESS:
5: 400
POTION:
HEALING:
1: 60
2: 150

- Download the latest version of DonutSell.
- Drop the
.jar file into your server's plugins folder.
- Restart your server.
- Done! No setup needed except prices, everything else already has a default.

© All Rights Reversed. Created by SirSnaryo.
评论 0
登录后参与评分
还没有评论,来抢沙发吧