DonutWorth+ Wiki
概述
DonutWorth+ 是一款专为使用 ShopGUI+ 的 Minecraft 服务器设计的轻量级物品价值显示插件。
它会自动读取 ShopGUI+ 中的出售价格,并将物品价值直接显示在物品的描述文本(lore)中。
该插件不包含独立的出售系统,仅专注于以简洁且优化的方式展示物品价值。
主要功能
- 自动添加物品价值描述文本
- 支持 ShopGUI+ 出售价格
- 计算潜影盒内物品的总价值
- 玩家切换显示开关的命令
- 管理员重载配置命令
- 轻量级且优化事件处理
- 无需自定义价格列表
- 无不必要的库存扫描
- 不包含出售命令
要求
- 兼容 Paper / Purpur / Spigot 的服务器
- ShopGUI+
- Java 17 或更高版本
命令
/worth toggle
切换玩家对物品价值描述文本的可见性。
启用后,受支持的物品将在其描述文本中显示价值。
权限:
donutworth.use
/worth reload
重载插件配置。
权限:
donutworth.admin
权限说明
donutworth.use
允许玩家使用 /worth toggle 命令。
donutworth.admin
允许玩家使用 /worth reload 命令。
配置
默认配置如下:
settings:
prefix: '&bDonutWorth+ &8» '
hooks:
shopgui: true
lore:
line: '&7Worth: &a$%worth%'
shulker-line: '&7Shulker Worth: &a$%worth%'
定价机制
DonutWorth+ 不使用手动定价部分。
所有物品价格均直接取自 ShopGUI+ 的出售价格。
如果某物品无法通过 ShopGUI+ 出售,DonutWorth+ 将不会为该物品添加价值描述行。
这有助于保持插件简洁,并防止多个系统之间的价格冲突。
潜影盒价值
DonutWorth+ 可以计算潜影盒内物品的总价值。
示例描述文本:
Shulker Worth: $3.02K
只有具有有效 ShopGUI+ 出售价格的物品才会被计入总价值。
描述文本系统
插件会添加自身的价值行,而不会移除现有的物品描述文本。
示例:
Worth: $256
如果物品已经包含由 DonutWorth+ 添加的价值行,则会更新该行而不是重复添加。
性能注意事项
DonutWorth+ 的设计旨在避免沉重的库存扫描操作。
价值描述文本的更新通过以下优化事件处理:
默认情况下不使用库存点击扫描,以防止增加不必要的服务器负载。
插件还使用内部缓存来减少重复查询 ShopGUI+ 价格的操作。
安装步骤
- 在服务器上安装 ShopGUI+。
- 将 DonutWorth+ 放入 plugins 文件夹。
- 重启服务器。
- 如需修改,请配置描述文本格式。
- 配置更改后,使用 /worth reload 命令重载。
重要提示
- DonutWorth+ 不出售物品。
- DonutWorth+ 不创建自定义物品价格。
- 物品价值仅基于 ShopGUI+ 的出售价格。
- 没有 ShopGUI+ 出售价格的物品不会显示价值描述文本。
- 潜影盒价值是根据其中可出售的物品计算的。
技术支持
在报告问题之前,请检查以下内容:
- ShopGUI+ 已安装且正常运行。
- 该物品在 ShopGUI+ 中具有有效的出售价格。
- 玩家拥有所需的权限。
- 插件配置文件为有效的 YAML 格式。
DonutWorth+ Wiki
Overview
DonutWorth+ is a lightweight item worth display plugin designed for Minecraft servers using ShopGUI+.
It automatically reads sell prices from ShopGUI+ and displays item values directly on item lore.
The plugin does not include a separate sell system. It only focuses on showing item worth in a clean and optimized way.
Main Features
Automatic item worth lore
ShopGUI+ sell price support
Shulker Box content worth calculation
Toggle command for players
Reload command for administrators
Lightweight and optimized event handling
No custom price list required
No unnecessary inventory scanning
No sell commands included
Requirements
Paper / Purpur / Spigot compatible server
ShopGUI+
Java 17 or newer
Commands
/worth toggle
Toggles worth lore visibility for the player.
When enabled, supported items will display their worth in the item lore.
Permission:
donutworth.use
/worth reload
Reloads the plugin configuration.
Permission:
donutworth.admin
Permissions
donutworth.use
Allows the player to use /worth toggle.
donutworth.admin
Allows the player to use /worth reload.
Configuration
Default configuration:
settings:
prefix: '&bDonutWorth+ &8» '
hooks:
shopgui: true
lore:
line: '&7Worth: &a$%worth%'
shulker-line: '&7Shulker Worth: &a$%worth%'
How Pricing Works
DonutWorth+ does not use a manual prices section.
All item prices are taken directly from ShopGUI+ sell prices.
If an item cannot be sold through ShopGUI+, DonutWorth+ will not add a worth line to that item.
This keeps the plugin simple and prevents price conflicts between multiple systems.
Shulker Box Worth
DonutWorth+ can calculate the total value of items inside a Shulker Box.
Example lore:
Shulker Worth: $3.02K
Only items with valid ShopGUI+ sell prices are included in the total value.
Lore System
The plugin adds its own worth line without removing existing item lore.
Example:
Worth: $256
If the item already has a worth line from DonutWorth+, it will be updated instead of duplicated.
Performance Notes
DonutWorth+ is designed to avoid heavy inventory scans.
Worth lore updates are handled through optimized events such as:
Player join
Held item change
Item pickup
Inventory click scanning is not used by default to prevent unnecessary server load.
The plugin also uses internal caching to reduce repeated ShopGUI+ price lookups.
Installation
Install ShopGUI+ on your server.
Place DonutWorth+ in the plugins folder.
Restart the server.
Configure the lore format if needed.
Use /worth reload after configuration changes.
Important Notes
DonutWorth+ does not sell items.
DonutWorth+ does not create custom item prices.
Item worth is based only on ShopGUI+ sell prices.
Items without a ShopGUI+ sell price will not show worth lore.
Shulker values are calculated from sellable items inside the Shulker Box.
Support
Before reporting an issue, please check:
ShopGUI+ is installed and working.
The item has a valid sell price in ShopGUI+.
The player has the required permission.
The plugin configuration is valid YAML.
评论 0
登录后参与评分
还没有评论,来抢沙发吧