插件介绍
使用游戏内货币在建筑授权区域购买和种植树木
主要用途
主要用于trees、plant等服务端功能。 本插件由 Bazz3l 发布,当前目录记录版本为 v1.2.11,uMod 累计下载 30,004 次。
适用场景
- 希望扩展原版服务器功能的服主
功能分类
查看 uMod 官方英文简介
Buy and plant trees in building authed areas using in-game currency
权限节点
treeplanter.use
Allows player to plant trees using plugin
treeplanter.menu
Allows players to open a User Interface for purchasing items when granted rather than having to enter command args.
授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke。
指令说明
tree
List available trees
tree <type> <optional:amount> -- Buy and plant tree
相关依赖
- Economics
- Server Rewards
配置说明
UseCurrency: set true to use scrap as currency.
UseServerRewards: set true to use server reward points.
UseEconomics: set true to use economics points.
{ "UseServerRewards (use server rewards as currency)": false, "UseEconomics (use economics as currency)": false, "UseCurrency (use custom items as currency, by specifying the CurrencyItem)": true, "CurrencyItem (set an item id to use as currency, default is set to scrap)": -932201673, "CurrencySkinID (set an skin id to use as currency, default is set to 0)": 0, "EnableGrowing (enables growing from saplings to adult trees over a period of time)": false, "EnableOwner (enables owners to chop down trees)": false, "EnableClan (enables clan members to chop down trees)": false, "EnableTeam (enables team members to chop down trees)": false, "BlockedAgriItems (specify which items should only be placed in a planter box)": { "seed.black.berry": true, "seed.blue.berry": true, "seed.green.berry": true, "seed.yellow.berry": true, "seed.white.berry": true, "seed.red.berry": true, "seed.corn": true, "clone.corn": true, "seed.pumpkin": true, "clone.pumpkin": true, "seed.hemp": true, "clone.hemp": true }, "TreeConfigs (list of available trees to purchase)": [ { "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest_pine/american_beech_a.prefab", "Name": "american-beech-a", "Skin": 0, "Cost": 10, "Amount": 1, "ImageUrl": "" }, { "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest/american_beech_b.prefab", "Name": "american-beech-b", "Skin": 0, "Cost": 10, "Amount": 1, "ImageUrl": "" }, { "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest/american_beech_c.prefab", "Name": "american-beech-c", "Skin": 0, "Cost": 10, "Amount": 1, "ImageUrl": "" }, { "Prefab": "assets/bundled/prefabs/autospawn/resource/swamp-trees/swamp_tree_f.prefab", "Name": "swamp-tree-f", "Skin": 0, "Cost": 10, "Amount": 1, "ImageUrl": "" } ] }
官方配置示例
{
"UseServerRewards (use server rewards as currency)": false,
"UseEconomics (use economics as currency)": false,
"UseCurrency (use custom items as currency, by specifying the CurrencyItem)": true,
"CurrencyItem (set an item id to use as currency, default is set to scrap)": -932201673,
"CurrencySkinID (set an skin id to use as currency, default is set to 0)": 0,
"EnableGrowing (enables growing from saplings to adult trees over a period of time)": false,
"EnableOwner (enables owners to chop down trees)": false,
"EnableClan (enables clan members to chop down trees)": false,
"EnableTeam (enables team members to chop down trees)": false,
"BlockedAgriItems (specify which items should only be placed in a planter box)": {
"seed.black.berry": true,
"seed.blue.berry": true,
"seed.green.berry": true,
"seed.yellow.berry": true,
"seed.white.berry": true,
"seed.red.berry": true,
"seed.corn": true,
"clone.corn": true,
"seed.pumpkin": true,
"clone.pumpkin": true,
"seed.hemp": true,
"clone.hemp": true
},
"TreeConfigs (list of available trees to purchase)": [
{
"Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest_pine/american_beech_a.prefab",
"Name": "american-beech-a",
"Skin": 0,
"Cost": 10,
"Amount": 1,
"ImageUrl": ""
},
{
"Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest/american_beech_b.prefab",
"Name": "american-beech-b",
"Skin": 0,
"Cost": 10,
"Amount": 1,
"ImageUrl": ""
},
{
"Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest/american_beech_c.prefab",
"Name": "american-beech-c",
"Skin": 0,
"Cost": 10,
"Amount": 1,
"ImageUrl": ""
},
{
"Prefab": "assets/bundled/prefabs/autospawn/resource/swamp-trees/swamp_tree_f.prefab",
"Name": "swamp-tree-f",
"Skin": 0,
"Cost": 10,
"Amount": 1,
"ImageUrl": ""
}
]
}
更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由本站已校验的本地缓存提供作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。