NoEconomy
NoEconomy 是一个轻量级的 Vault 经济提供程序,它为每位玩家赋予无限余额(Double.MAX_VALUE)。它允许任何依赖 Vault 经济 API 的插件在没有实际资金管理的情况下运行——非常适合创意服务器、私人好友服务器或测试环境,在这些场景中你无需担心配置真实的经济系统。
工作原理
NoEconomy 向 Vault 注册自己作为活跃的经济提供程序。每当有插件(如商店、拍卖行或任务插件)检查玩家余额时,NoEconomy 都会返回 Double.MAX_VALUE。所有取款和存款请求都会立即标记为成功,但玩家的余额实际上永远不会改变。这有效地使所有购买、出售交易和经济相关操作始终可行。
特性
- 零配置 – 只需将 jar 文件放入你的 plugins 文件夹即可。
- 始终返回
Double.MAX_VALUE – 玩家的金钱多于任何插件可能要求的数量。
- 所有交易均成功 – 无需担心资金不足。
- 轻量级 – 无数据库、无文件、无额外开销。
- 兼容 Vault – 可与任何使用 Vault 经济 API 的插件配合工作。
安装
- 确保你的服务器上已安装 Vault。(下载 Vault)
- 从 GitHub 或 Modrinth 下载最新的 NoEconomy jar 文件。
- 将 jar 文件放入服务器的
plugins/ 文件夹中。
- 重启服务器(或使用插件管理器加载它)。
- NoEconomy 将自动向 Vault 注册自己。无需其他步骤!
配置
NoEconomy 不需要任何配置。开箱即用。
(如果你希望将来更改假余额值,可能会添加一个配置选项。如果需要此功能,请随时提交 issue。)
兼容性
NoEconomy 旨在尽可能兼容。它已在以下环境中经过测试:
- Spigot / Paper 1.13 – 1.21
- Vault 1.7.x
- 流行插件如 EssentialsX、ChestShop、QuickShop 等。
然而,由于 NoEconomy 模拟无限金钱而不实际更改余额,某些插件可能会出现意外行为,如果它们:
- 依赖余额变化来触发事件(例如基于金钱的排名)。
- 在交易后通过读取余额进行双重检查。
- 期望余额随时间减少。
如果你遇到特定插件的问题,请 提交 issue 并描述问题。
重要说明 / 已知限制
- 无实际金钱追踪 – 由于从未扣除或添加金钱,任何依赖玩家累积财富的插件(如基于经济的排行榜)将无法正常工作。
- 潜在的算术溢出 – 某些插件可能会尝试向玩家余额添加金额,导致
Double.MAX_VALUE + 1 变为 Infinity。虽然这种情况很少见,但这可能会导致这些插件出现错误。
- 不适用于生存或交易服务器 – 如果你想要具有玩家驱动市场的真实经济系统,这个插件不适合你。仅在你希望完全移除经济障碍时使用它。
从源码构建
NoEconomy 使用 Maven。要自行构建插件:
git clone https://github.com/cygbs/NoEconomy.git
cd NoEconomy
mvn clean package
编译后的 jar 文件将在 target/ 目录中。
许可证
本项目采用 LGPLv2.1+ 许可证 – 详情请参阅 LICENSE 文件。
贡献
欢迎贡献!如果你有改进的想法或发现 bug,请提交 issue 或拉取请求。
NoEconomy – 因为有时你只是想跳过经济系统。
NoEconomy
NoEconomy is a lightweight Vault economy provider that gives every player an infinite balance (Double.MAX_VALUE). It allows any plugin depending on Vault's economy API to function without actual money management – perfect for creative servers, private friend servers, or testing environments where you don't want to worry about configuring a real economy.
How It Works
NoEconomy registers itself with Vault as the active economy provider. Whenever a plugin (like a shop, auction house, or quest plugin) checks a player's balance, NoEconomy returns Double.MAX_VALUE. All withdrawal and deposit requests are instantly marked as successful, but the player's balance never actually changes. This effectively makes all purchases, sell transactions, and economy-related actions always possible.
Features
- Zero configuration – Just drop the jar into your plugins folder.
- Always returns
Double.MAX_VALUE – Players have more money than any plugin could ever ask for.
- All transactions succeed – No need to worry about insufficient funds.
- Lightweight – No database, no files, no overhead.
- Vault-compatible – Works with any plugin that uses Vault's economy API.
Installation
- Make sure you have Vault installed on your server. (Download Vault)
- Download the latest NoEconomy jar from the GitHub or Modrinth.
- Place the jar into your server's
plugins/ folder.
- Restart your server (or use a plugin manager to load it).
- NoEconomy will automatically register itself with Vault. No further steps needed!
Configuration
NoEconomy does not require any configuration. It works out of the box.
(If you wish to change the fake balance value in the future, a config option may be added. Feel free to open an issue if you need this feature.)
Compatibility
NoEconomy is designed to be as compatible as possible. It has been tested with:
- Spigot / Paper 1.13 – 1.21
- Vault 1.7.x
- Popular plugins like EssentialsX, ChestShop, QuickShop, and others.
However, because NoEconomy simulates infinite money without actually changing balances, some plugins may behave unexpectedly if they:
- Rely on balance changes to trigger events (e.g., ranking based on money).
- Perform double-checks by reading the balance after a transaction.
- Expect balances to decrease over time.
If you encounter issues with a specific plugin, please open an issue and describe the problem.
Important Notes / Known Limitations
- No actual money tracking – Since no money is ever deducted or added, any plugin that depends on a player's accumulated wealth (like an economy-based leaderboard) will not work correctly.
- Potential arithmetic overflow – Some plugins might attempt to add to a player's balance, resulting in
Double.MAX_VALUE + 1 which becomes Infinity. While rare, this could cause errors in those plugins.
- Not for survival or trading servers – If you want a real economy with player-driven markets, this plugin is not for you. Use it only when you want to remove economic barriers entirely.
Building from Source
NoEconomy uses Maven. To build the plugin yourself:
git clone https://github.com/cygbs/NoEconomy.git
cd NoEconomy
mvn clean package
The compiled jar will be in the target/ directory.
License
This project is licensed under the LGPLv2.1+ License – see the LICENSE file for details.
Contributing
Contributions are welcome! If you have ideas for improvements or find a bug, please open an issue or submit a pull request.
NoEconomy – because sometimes you just want to skip the economy.
评论 0
登录后参与评分
还没有评论,来抢沙发吧