FeathersEconomy
一个功能齐全、可配置的经济插件
Vault · PlaceholderAPI · SQLite / MySQL / MariaDB
概览
FeathersEconomy 是一款轻量级、面向生产环境的经济插件,专为经济服务器打造。它配备了完全可配置的货币系统、聊天栏与动作栏双重通知、按事件触发的音效、SQLite/MySQL/MariaDB 存储支持、Vault 集成,以及带有前 30 名排行榜支持的 PlaceholderAPI 扩展。
特性
可配置货币
在配置文件中设置货币名称、复数形式、符号、符号位置(前/后)、小数位数和千位分隔符。
SQLite + MySQL + MariaDB
SQLite 开箱即用,无需任何设置。通过更改单一配置项即可切换到 MySQL 或 MariaDB,以支持多服务器网络。
Vault 集成
作为最高优先级的 Vault 经济提供商进行注册。任何支持 Vault 的插件都将自动与 FeathersEconomy 兼容——无需额外配置。
交易日志
每笔存款、取款、管理员修改和转账都会按玩家记录在数据库中。可通过 /fe history 查看。支持配置每个玩家的日志条目上限。
初始余额
新玩家首次加入时会自动获得可配置的初始余额。
双重通知
每条消息均可发送聊天栏、动作栏,或同时发送至两者。各通道的通知方式可独立配置。
分通道文本
使用子键为聊天栏和动作栏编写不同的文本内容。动作栏可使用简短文本,聊天栏则显示完整文本。
命令
管理命令 — /featherseconomy / /fe
| 命令 |
描述 |
权限 |
/fe add <player> <amount> |
向玩家添加余额 |
economy.admin |
/fe remove <player> <amount> |
从玩家扣除余额 |
economy.admin |
/fe set <player> <amount> |
设置玩家的精确余额 |
economy.admin |
/fe check <player> |
查询任意玩家的余额 |
economy.admin |
/fe leaderboard |
在聊天栏中显示前 N 名余额排行榜 |
economy.admin |
/fe history <player> [limit] |
查看玩家最近 N 笔交易记录(最多 50 条) |
economy.admin |
/fe sounds |
开启或关闭个人音效 |
everyone |
/fe reload |
重载 config.yml 而无需重启服务器 |
economy.admin |
/fe help |
显示命令参考手册 |
economy.admin |
通用命令
| 命令 |
描述 |
权限 |
/bal [player] |
查看自己的余额,或查看其他玩家的余额(仅限管理员) |
economy.use |
/balance [player] |
/bal 的别名 |
economy.use |
/money [player] |
/bal 的别名 |
economy.use |
/wallet [player] |
/bal 的别名 |
economy.use |
/pay <player> <amount> |
向在线玩家转账 |
economy.pay |
权限
| 节点 |
描述 |
默认值 |
economy.use |
使用 /bal、/wallet、/money、/balance |
true |
economy.pay |
使用 /pay 向其他玩家发送金钱 |
true |
economy.admin |
所有 /fe 管理命令 |
op |
economy.leaderboard |
访问排行榜命令 |
true |
economy.* |
所有经济相关权限 |
op |
PlaceholderAPI 占位符
需要安装 PlaceholderAPI。所有占位符均使用 %feathers_...% 标识符。
玩家占位符
| 占位符 |
描述 |
示例 |
%feathers_balance% |
带符号的格式化余额 |
$1,250.00 |
%feathers_balance_raw% |
原始数值余额 |
1250.0 |
%feathers_balance_plain% |
无符号的格式化数字 |
1,250.00 |
%feathers_currency_name% |
货币名称(单数) |
Dollar |
%feathers_currency_plural% |
货币名称(复数) |
Dollars |
%feathers_currency_symbol% |
货币符号 |
$ |
%feathers_rank% |
玩家在排行榜中的排名位置 |
#3 |
排行榜占位符(排名 1–30)
将 N 替换为 1 到 30 之间的任意数字。
| 占位符 |
描述 |
示例 |
%feathers_top_name_N% |
排名第 N 位的玩家用户名 |
N1ghtc1 |
%feathers_top_balance_N% |
排名第 N 位玩家的格式化余额 |
$50,000.00 |
%feathers_top_balance_raw_N% |
排名第 N 位玩家的原始余额 |
50000.0 |
性能提示: 排行榜占位符会缓存 60 秒,以避免频繁刷新的计分板对数据库造成过大压力。运行 /fe reload 时会自动清除缓存。
依赖要求
| 依赖项 |
类型 |
备注 |
| Paper 1.21.11+ |
必需 |
不支持 Spigot |
| Java 21+ |
必需 |
Paper 1.21.11 默认附带此版本 |
| Vault |
软依赖 |
仅当其他插件需要经济接口时才需要 |
| PlaceholderAPI |
软依赖 |
仅用于计分板和 PAPI 占位符 |
| MySQL / MariaDB |
可选 |
仅在从默认 SQLite 切换时使用 |
SQLite 已默认配置——无需额外设置即可开始使用。
支持
错误报告与功能请求
请通过 Discord 或 BuiltByBit 消息与我联系。请务必提供你的服务器版本、Java 版本、控制台中的完整错误日志以及复现步骤。
快速故障排除
- 插件无法启用 → 确保你使用的是 Paper 1.21.11+ 和 Java 21+
- 数据库错误 → 检查
config.yml 中的凭据,并确保你的 MySQL/MariaDB 服务器可达
- 消息未更新 → 任何配置更改后请运行
/fe reload
- 音效无效 → 检查
sounds.enabled 是否为 true,且音效名称在你的服务器版本中有效
- 占位符显示为空 → 确保已安装 PlaceholderAPI,且该玩家至少登录过一次
FeathersEconomy v1.0.0 · 由 N1ghtc1 制作
FeathersEconomy
A fully-featured, configurable economy plugin
Vault · PlaceholderAPI · SQLite / MySQL / MariaDB
Overview
FeathersEconomy is a lightweight, production-ready economy plugin built for Economy Servers. It comes with a fully configurable currency system, dual chat and action bar notifications, per-event sound effects, SQLite/MySQL/MariaDB storage, Vault integration, and a PlaceholderAPI expansion with top-30 leaderboard support.
Features
Configurable Currency
Set the name, plural form, symbol, symbol position (before/after), decimal places, and thousands separator from config.
SQLite + MySQL + MariaDB
SQLite works out of the box with zero setup. Switch to MySQL or MariaDB for multi-server networks with a single config change.
Vault Integration
Registers as a Vault economy provider at the highest priority. Any plugin that supports Vault will automatically work with FeathersEconomy — no extra configuration required.
Transaction Log
Every deposit, withdrawal, admin change, and transfer is logged per-player in the database. Viewable with /fe history. Configurable max entries per player.
Starting Balance
New players automatically receive a configurable starting balance when they first join.
Dual Notifications
Every message can be delivered to chat, the action bar, or both at the same time. Configured independently per channel.
Separate Channel Text
Write different text for chat or action bar using sub-keys. Shorter text for the action bar, full text for chat.
Commands
Admin — /featherseconomy / /fe
| Command |
Description |
Permission |
/fe add <player> <amount> |
Add balance to a player |
economy.admin |
/fe remove <player> <amount> |
Remove balance from a player |
economy.admin |
/fe set <player> <amount> |
Set a player's exact balance |
economy.admin |
/fe check <player> |
Check any player's balance |
economy.admin |
/fe leaderboard |
Show the top-N balance leaderboard in chat |
economy.admin |
/fe history <player> [limit] |
View a player's last N transactions (max 50) |
economy.admin |
/fe sounds |
Toggle personal sound effects on/off |
everyone |
/fe reload |
Reload config.yml without restarting |
economy.admin |
/fe help |
Show the command reference |
economy.admin |
General Commands
| Command |
Description |
Permission |
/bal [player] |
Check your balance, or another player's (admin only) |
economy.use |
/balance [player] |
Alias for /bal |
economy.use |
/money [player] |
Alias for /bal |
economy.use |
/wallet [player] |
Alias for /bal |
economy.use |
/pay <player> <amount> |
Transfer money to an online player |
economy.pay |
Permissions
| Node |
Description |
Default |
economy.use |
Use /bal, /wallet, /money, /balance |
true |
economy.pay |
Use /pay to send money to other players |
true |
economy.admin |
All /fe admin commands |
op |
economy.leaderboard |
Access to the leaderboard command |
true |
economy.* |
All economy permissions |
op |
PlaceholderAPI Placeholders
Requires PlaceholderAPI to be installed. All placeholders use the %feathers_...% identifier.
Player Placeholders
| Placeholder |
Description |
Example |
%feathers_balance% |
Formatted balance with symbol |
$1,250.00 |
%feathers_balance_raw% |
Raw numeric balance |
1250.0 |
%feathers_balance_plain% |
Formatted number, no symbol |
1,250.00 |
%feathers_currency_name% |
Currency name (singular) |
Dollar |
%feathers_currency_plural% |
Currency name (plural) |
Dollars |
%feathers_currency_symbol% |
Currency symbol |
$ |
%feathers_rank% |
Player's leaderboard rank position |
#3 |
Leaderboard Placeholders (Ranks 1–30)
Replace N with any number from 1 to 30.
| Placeholder |
Description |
Example |
%feathers_top_name_N% |
Username of the player at rank N |
N1ghtc1 |
%feathers_top_balance_N% |
Formatted balance of the player at rank N |
$50,000.00 |
%feathers_top_balance_raw_N% |
Raw balance of the player at rank N |
50000.0 |
Performance note: Leaderboard placeholders are cached for 60 seconds to avoid hammering the database on scoreboards that refresh frequently. The cache is automatically invalidated when you run /fe reload.
Requirements
| Dependency |
Type |
Notes |
| Paper 1.21.11+ |
Required |
Spigot is not supported |
| Java 21+ |
Required |
Ships with Paper 1.21.11 by default |
| Vault |
Soft-depend |
Only needed if other plugins require economy access |
| PlaceholderAPI |
Soft-depend |
Only needed for scoreboards and PAPI placeholders |
| MySQL / MariaDB |
Optional |
Only if switching from the default SQLite storage |
SQLite is set up by default — no configuration needed to get started.
Support
Bug Reports & Feature Requests
Contact me on Discord or through BuiltByBit Messages. Please include your server version, Java version, full error log from console, and steps to reproduce.
Quick Troubleshooting
- Plugin fails to enable → Make sure you are on Paper 1.21.11+ and Java 21+
- Database errors → Check your credentials in
config.yml and that your MySQL/MariaDB server is reachable
- Messages not updating → Run
/fe reload after any config change
- Sounds not working → Check
sounds.enabled is true and the sound name is valid for your server version
- Placeholders showing blank → Make sure PlaceholderAPI is installed and the player has joined at least once
FeathersEconomy v1.0.0 · Made by N1ghtc1
评论 0
登录后参与评分
还没有评论,来抢沙发吧