well404.Economy
1.0.0
dotnet add package well404.Economy --version 1.0.0
NuGet\Install-Package well404.Economy -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="well404.Economy" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="well404.Economy" Version="1.0.0" />
<PackageReference Include="well404.Economy" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add well404.Economy --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: well404.Economy, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package well404.Economy@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=well404.Economy&version=1.0.0
#tool nuget:?package=well404.Economy&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
well404.Economy
Unturned / OpenMod 货币经济插件 —— 以全局
IEconomyProvider对外供币,后端可选 LiteDB 账本或原生经验值。
well404.Economy 是 well404 OpenMod 插件家族 的经济核心。它实现 OpenMod 的
IEconomyProvider 抽象并注册为全局服务,任何其他插件(商店、签到等)都能注入它来收发货币。
功能
- 💰 玩家货币账户,余额查询与管理命令
- 🗄️ 两种后端:
database(LiteDB 单文件账本,纯托管、无原生依赖)或experience(原生 Unturned 经验值) - 🔁 玩家间转账
/pay,可设最低额度与手续费税率 - ⚔️ 击杀奖励:玩家 / 僵尸 / 巨型僵尸 / 动物可分别配置奖励金额
- 🌐 可选 Web 管理面板集成(配合 well404.WebPanel)
- 🎮 可选玩家网页钱包:玩家
/menu即可在浏览器里查看余额、向在线玩家转账
安装
openmod install well404.Economy
重启服务器或执行 openmod reload 后生效。
命令
| 命令 | 别名 | 说明 |
|---|---|---|
/balance [玩家] |
/bal, /money |
查看自己或他人余额 |
/pay <玩家> <金额> |
向其他玩家转账(需在配置中开启) | |
/eco give <玩家> <金额> |
管理:发放货币 | |
/eco take <玩家> <金额> |
管理:扣除货币 | |
/eco set <玩家> <金额> |
管理:设定余额 |
配置 (config.yaml)
currency:
name: "Credit" # 货币名称(显示在消息中)
symbol: "$" # 货币符号
startingBalance: 0 # 新账户初始余额(仅 database 后端)
backend: "database" # database | experience
database:
fileName: "economy.db" # LiteDB 文件名(位于插件目录)
transfer:
enabled: true # 是否允许 /pay 转账
minAmount: 1 # 单笔最低转账额
taxPercent: 0 # 0-100,每笔转账抽税百分比
killRewards:
enabled: true # 击杀奖励总开关
player: 0 # 击杀玩家奖励
zombie: 0 # 击杀僵尸奖励
megaZombie: 0 # 击杀巨型僵尸奖励
animal: 0 # 击杀动物奖励
Web 管理面板
安装 well404.WebPanel 后,Economy 会自动注册「经济」模块:浏览并编辑所有玩家余额、配置货币信息、击杀奖励与转账参数。未安装面板时插件照常通过命令工作。
此外还会注册一个面向玩家的钱包菜单:玩家在游戏内输入 /menu(或 /menu economy)即可在浏览器里查看自己的余额、向任一在线玩家转账(沿用 /pay 的开关、最低额与税率)。
well404 OpenMod 插件家族
| 插件 | 说明 |
|---|---|
| well404.Economy | 货币经济核心,全局 IEconomyProvider 供币 |
| well404.Shop | 物品商店,买卖物品 / 组合包,依赖 Economy |
| well404.WebPanel | 通用 Web 管理面板,供各插件挂载可视化管理模块 |
| well404.Essentials | 面向玩家的实用指令:home/tp/warp/gift/sleep/back,经济收费可选 |
完整文档、配置示例与本地调试说明见 GitHub 仓库 的 docs/。
许可
CC BY-NC-SA 4.0 © well404
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- LiteDB (>= 5.0.21)
- OpenMod.Extensions.Economy.Abstractions (>= 3.8.10)
- OpenMod.Unturned (>= 3.8.10)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on well404.Economy:
| Package | Downloads |
|---|---|
|
well404.Shop
Shop |
GitHub repositories
This package is not used by any popular GitHub repositories.