CeraEconomy — 概览
CeraEconomy 是一款轻量级且可配置的 Paper Minecraft 经济插件,旨在提供一套完整的服务器经济系统,包含玩家余额、支付、银行、排行榜、商店、出售、持久化存储以及旧版数据迁移功能。
核心系统
经济 (Economy)
- 玩家余额管理。
- 使用
/balance 和 /bal 查看余额。
- 使用
/pay 进行玩家间转账。
- 使用
/eco 进行经济管理。
- 支持设置、添加、移除和转移资金。
- 使用 BigDecimal 确保货币值的精确性。
- 持久化经济数据存储。
- 支持自动保存。
- 交易管理。
银行 (Bank)
- 独立的银行账户余额系统。
- 支持存款和取款。
- 银行账户余额管理。
- 银行图形用户界面 (GUI)。
命令:
/bank balance
/bank deposit
/bank withdraw
余额排行榜 (Balance Top)
命令:
/baltop
/balancetop
/topbalance
显示拥有最高经济余额的玩家。
商店系统
商店系统提供了一个基于 GUI 的可配置市场,玩家可以在其中浏览分区、查看商店、购买已配置的物品,并直接使用其经济余额付款。
玩家命令:
功能:
- 主商店 GUI。
- 商店分区。
- 独立商店 GUI。
- 可配置的物品槽位。
- 可配置的物品价格。
- 自动经济支付。
- 直接物品交付。
- 余额检查。
- 背包空间保护。
- 可点击的 GUI。
商店管理
管理员可以创建和管理商店及商店物品。
命令:
/shop add <shop> <slot>
/shop set <shop> <slot>
/shop set <shop> <name>
/shop <shop> add <item> <price> <slot>
/shop <shop> set <item> <price>
/shop <shop> reset
reset 命令仅清除商店的 Items(物品)部分。它不会删除商店、分区、槽位、名称、标题或显示设置。
商店与分区架构
商店数据分离存储在 Shops/ 和 Sections/ 中。
示例:
Shops/
└── Food.yml
Sections/
└── Food.yml
商店文件和分区文件使用相同的文件名以保持关联。
自动功能:
- 创建缺失的商店文件。
- 创建缺失的分区文件。
- 自动查找可用的分区槽位。
- 同步 Shops 和 Sections。
- 提供
Example.yml 模板。
商店 GUI
商店 GUI 可通过 config.yml 进行配置。
支持的 GUI 尺寸:
默认配置:
shop:
Enabled: true
Size: 54
Fill:
Enabled: true
Block: BLACK_STAINED_GLASS_PANE
出售系统
出售系统允许玩家通过经济系统出售已配置的物品。
玩家命令:
管理员命令:
/sell add <item> <price>
/sell set <item> <price>
/sell remove <item>
包含物品和价格验证功能。
数据与存储
CeraEconomy 使用持久化数据存储来在服务器重启之间保留玩家的经济信息。
该插件还使用带版本号的文件夹来区分不同插件版本之间的数据。
示例:
CeraEconomy-1.4.5/
├── config.yml
├── Shops/
├── Sections/
└── ...
旧版数据导入
CeraEconomy 包含旧版数据导入系统,用于从旧版 CeraEconomy 迁移数据。
导入器:
- 检测较旧的
CeraEconomy-x.x.x 文件夹。
- 选择最新的有效旧版版本。
- 自动确定支持的旧版存储格式。
- 导入兼容的经济数据。
- 记录导入源和版本。
- 报告已导入的账户和跳过的数据。
- 安全处理缺失或无效的旧版数据。
- 完成后自动禁用导入选项。
支持的旧版存储:
< 1.3.0 → YAML
1.3.0 - 1.3.3 → YAML + MySQL
> 1.3.3 → YAML + MySQL + SQLite
可通过以下方式启用导入:
import-data: true
该选项默认为 false,并在导入过程结束后自动重置为 false。
兼容性
- Paper API 1.21
- Vault — 软依赖
- PlaceholderAPI — 软依赖
架构
CeraEconomy 围绕几个独立的系统组织而成:
CeraEconomy
│
├── Economy
│ ├── Balance
│ ├── Payments
│ ├── Administration
│ └── Storage
│
├── Bank
│ ├── Deposit
│ ├── Withdrawal
│ └── Bank GUI
│
├── Shop
│ ├── Sections
│ ├── Shops
│ ├── Shop Items
│ ├── Shop GUI
│ └── Purchasing
│
├── Sell
│ ├── Sell GUI
│ └── Sell Configuration
│
├── Balance Top
│
└── Legacy Data Import
版本历史
CeraEconomy 1.4.6
- 添加了旧版数据导入功能。
- 添加了自动旧版版本检测。
- 添加了 YAML、MySQL 和 SQLite 旧版导入支持。
- 添加了更安全的迁移处理。
- 添加了详细的导入日志记录。
- 将插件版本更新为 1.4.6。
CeraEconomy 1.4.5
- 扩展了商店系统。
- 添加了商店物品管理。
- 添加了商店购买功能。
- 将商店与经济系统集成。
- 添加了
/shop <shop>。
- 添加了物品重置功能。
- 添加了可点击的商店和物品 GUI。
- 添加了余额和背包检查。
- 更新了默认的商店填充材质。
CeraEconomy 1.4.4
- 引入了商店系统。
- 添加了
/shop、/ceshop 和 /cshop。
- 添加了可配置的商店 GUI 尺寸。
- 添加了可配置的 GUI 填充。
- 添加了 Shops 和 Sections 文件夹。
- 添加了商店 ↔ 分区同步。
- 添加了自动空闲槽位检测。
- 添加了
/cesell 和 /csell。
CeraEconomy 1.4.3
总结
CeraEconomy 是为 Paper 服务器打造的一体化经济解决方案。
它结合了:
经济 + 银行 + 余额排行榜 + 商店 + 出售 + 持久化存储 + 旧版迁移
该插件旨在为玩家和管理员提供简单但可扩展的经济体验,同时保持商店数据、经济数据和特定版本数据的有序性和可管理性。
MIT License
CeraEconomy — Overview
CeraEconomy is a lightweight and configurable economy plugin for Paper Minecraft, designed to provide a complete server economy system with player balances, payments, banking, leaderboards, shops, selling, persistent storage, and legacy data migration.
Core Systems
Economy
- Player balance management.
/balance and /bal to view balances.
/pay for player-to-player payments.
/eco for economy administration.
- Supports setting, adding, removing, and transferring money.
- Uses BigDecimal for accurate monetary values.
- Persistent economy storage.
- Autosave support.
- Transaction management.
Bank
- Separate bank balance system.
- Deposit and withdrawal support.
- Bank balance management.
- Bank GUI.
Commands:
/bank balance
/bank deposit
/bank withdraw
Balance Top
Commands:
/baltop
/balancetop
/topbalance
Displays players with the highest economy balances.
Shop System
The Shop system provides a configurable GUI-based marketplace where players can browse sections, view shops, purchase configured items, and pay directly using their economy balance.
Player commands:
Features:
- Main shop GUI.
- Shop sections.
- Individual shop GUIs.
- Configurable item slots.
- Configurable item prices.
- Automatic economy payments.
- Direct item delivery.
- Balance checks.
- Inventory space protection.
- Clickable GUIs.
Shop Management
Admins can create and manage shops and shop items.
Commands:
/shop add <shop> <slot>
/shop set <shop> <slot>
/shop set <shop> <name>
/shop <shop> add <item> <price> <slot>
/shop <shop> set <item> <price>
/shop <shop> reset
The reset command only clears the shop's Items section. It does not delete the shop, section, slot, name, title, or display settings.
Shop & Section Architecture
Shop data is separated into Shops/ and Sections/.
Example:
Shops/
└── Food.yml
Sections/
└── Food.yml
Shop and Section files use the same filename to remain linked.
Automatic features:
- Creates missing shop files.
- Creates missing section files.
- Automatically finds available section slots.
- Synchronizes Shops and Sections.
- Provides
Example.yml templates.
Shop GUI
The Shop GUI can be configured through config.yml.
Supported GUI sizes:
Default configuration:
shop:
Enabled: true
Size: 54
Fill:
Enabled: true
Block: BLACK_STAINED_GLASS_PANE
Sell System
The Sell system allows players to sell configured items through the economy system.
Player commands:
Admin commands:
/sell add <item> <price>
/sell set <item> <price>
/sell remove <item>
Includes item and price validation.
Data & Storage
CeraEconomy uses persistent data storage to keep player economy information between server restarts.
The plugin also uses versioned data folders to keep data separated between plugin versions.
Example:
CeraEconomy-1.4.5/
├── config.yml
├── Shops/
├── Sections/
└── ...
Legacy Data Import
CeraEconomy includes a Legacy Data Import system for migrating data from older CeraEconomy versions.
The importer:
- Detects older
CeraEconomy-x.x.x folders.
- Selects the newest valid legacy version.
- Automatically determines supported legacy storage formats.
- Imports compatible economy data.
- Logs the import source and version.
- Reports imported accounts and skipped data.
- Safely handles missing or invalid legacy data.
- Automatically disables the import option after completion.
Supported legacy storage:
< 1.3.0 → YAML
1.3.0 - 1.3.3 → YAML + MySQL
> 1.3.3 → YAML + MySQL + SQLite
Import can be enabled through:
import-data: true
The option defaults to false and is automatically reset to false after the import process.
Compatibility
- Paper API 1.21
- Vault — soft dependency
- PlaceholderAPI — soft dependency
Architecture
CeraEconomy is organized around several independent systems:
CeraEconomy
│
├── Economy
│ ├── Balance
│ ├── Payments
│ ├── Administration
│ └── Storage
│
├── Bank
│ ├── Deposit
│ ├── Withdrawal
│ └── Bank GUI
│
├── Shop
│ ├── Sections
│ ├── Shops
│ ├── Shop Items
│ ├── Shop GUI
│ └── Purchasing
│
├── Sell
│ ├── Sell GUI
│ └── Sell Configuration
│
├── Balance Top
│
└── Legacy Data Import
Version History
CeraEconomy 1.4.6
- Added Legacy Data Import.
- Added automatic legacy version detection.
- Added YAML, MySQL, and SQLite legacy import support.
- Added safer migration handling.
- Added detailed import logging.
- Updated plugin version to 1.4.6.
CeraEconomy 1.4.5
- Expanded the Shop system.
- Added shop item management.
- Added shop purchasing.
- Integrated Shop with the Economy system.
- Added
/shop <shop>.
- Added item reset functionality.
- Added clickable shop and item GUIs.
- Added balance and inventory checks.
- Updated the default shop fill material.
CeraEconomy 1.4.4
- Introduced the Shop system.
- Added
/shop, /ceshop, and /cshop.
- Added configurable Shop GUI sizes.
- Added configurable GUI fill.
- Added Shops and Sections folders.
- Added Shop ↔ Section synchronization.
- Added automatic free-slot detection.
- Added
/cesell and /csell.
CeraEconomy 1.4.3
- Previous stable foundation before the Shop system.
Summary
CeraEconomy is an all-in-one economy solution for Paper servers.
It combines:
Economy + Bank + Balance Top + Shop + Sell + Persistent Storage + Legacy Migration
The plugin is designed to provide a simple but extensible economy experience for both players and administrators, while keeping shop data, economy data, and version-specific data organized and manageable.
MIT License
评论 0
登录后参与评分
还没有评论,来抢沙发吧