重置插件 [机制]Replenisher —— 自动补充资源Endless Resource![2.1]

英文名称
Replenisher
中文名称
资源补充
插件来源
重置
API类型
TerrariaServerAPI
插件类型
  1. 管理
  2. 综合
语言支持
  1. 简体中文
  2. 非官方汉化
适用版本
  1. 1.4
前置Mod/插件
TShock
下载地址
本帖.net
原帖地址
https://github.com/omni-/Replenisher/
开源地址
https://github.com/omni-/Replenisher/
API版本
2.1

Bean_Paste

Lv6
管理成员
管理员
LV
0
 
IP属地
湖南省
2018/07/31
548
125
勋章
7
  • · 发布于未知
Replenisher
资源补充

搬运简介
在此非常感谢原作者 omni 大大
这是一个可以通过指令补充服务器资源的插件,可以补充的物资类型有,树,生命水晶,矿类等(下面会讲到)
使用该插件后不用担心你的服务器得经常的去换地图了
因为原贴的资源已经过期而且API版本已经跟不上了,所以我顺便的升级了一下API版本和汉化了一下,下面会提供 官方版 和 汉化版 的下载
本次1.4的更新个人对此插件做了轻微修改(个人风格化,方便以后的维护的升级)汉化的话少数用了机翻,不过可能个人英语水平太渣,自己翻译的也像机翻吧233

指令&权限[Commands&Permissions]
  • 未汉化版
    /replen [type] [amount] [oretype]生成指定该类型的物资 amount是数量 oreytype是矿的类型 当你的type是ore时该项才生效
    /replenreload重载插件
  • 汉化版
    /资源补充 <类型> <数量> <矿的种类>生成指定该类型的物资 (当 类型 时,选项 矿的种类 才会生效)
    /资源补充重载重载插件
支持的生成的类型(汉化版里的类型就是下面对应的中文)
ore -矿
chests -箱子
pots -罐子
lifecrystals -生命水晶
altars -祭坛
trees -树
floatingisland -浮空岛
支持的生成矿物类型:这个可以去中文Wiki查看一下相应矿物的英文名

权限
tshock.world.causeevents 使用权限

配置文件[Config]
JSON:
{
"GenerateInProtectedAreas": false,//是否允许在保护的区域内生成
"AutomaticallRefill": false,//是否开启自动填补
"AutoRefillTimerInMinutes": 1,//填补周期(以分钟为单位)
"ReplenOres": false,//开启自动填补时,是否生成矿物
"OreToReplen": [],//生成的矿物种类
"OreAmount": 0,//生成的矿物数量
"ReplenChests": true,//开启自动填补时,是否生成箱子
"ChestAmount": 10,//生成的箱子数量
"ReplenPots": true,//开启自动填补时,是否生成罐子
"PotsAmount": 10,//生成的罐子数量
"ReplenLifeCrystals": true,//开启自动填补时,是否生成生命水晶
"LifeCrystalAmount": 10,//生成的生命水晶数量
"ReplenTrees": true,//开启自动填补时,是否生成树
"TreesAmount": 5//生成的树的节树
}

使用图片
3700_caed326985585cead95c3340bd6a23c8.gif
 

附件

  • Replenisher[API2.1 汉化版].dll
    13.5 KB · 查看: 423
  • Replenisher[API2.1 英文版].dll
    14.5 KB · 查看: 143
  • Replenisher【支持1.4】.dll
    14.5 KB · 查看: 0
最后编辑:

TheLastPrism

Lv6
管理成员
版主
创意家
LV
0
 
IP属地
湖北省
2019/10/25
1,027
341
勋章
5
  • · 发布于未知
这个东西配置文件里好像也有自动生成的设置,不过好像没用
 

330377782

Lv3
LV
0
 
IP属地
江苏省
2019/12/04
7
0
  • · 发布于未知
补充矿物它显示报错啊
Command: ERROR: System.NullReferenceException: 未将对象引用设置到对象的实例。
在 Replenisher.Replenisher.Replen(CommandArgs args)
在 TShockAPI.Command.Run(String msg, Boolean silent, TSPlayer ply, List`1 parms)
 

330377782

Lv3
LV
0
 
IP属地
江苏省
2019/12/04
7
0
  • · 发布于未知
同求坐着出一期汉化和API更新的视屏
 

TheLastPrism

Lv6
管理成员
版主
创意家
LV
0
 
IP属地
湖北省
2019/10/25
1,027
341
勋章
5
  • · 发布于未知
是API版本问题
 

xingye

Lv3
LV
0
 
IP属地
未知
2019/09/08
8
0
  • · 发布于未知
pe:
Command: ERROR: System.MissingMethodException: 找不到方法:“Terraria.Utilities.UnifiedRandom Terraria.WorldGen.get_genRand()”。
在 Replenisher.Replenisher.PrivateReplenisher(GenType type, Int32 amount, Int32& gend, UInt16 oretype, CommandArgs args)
在 Replenisher.Replenisher.Replen(CommandArgs args)
在 TShockAPI.Command.Run(String msg, Boolean silent, TSPlayer ply, List`1 parms)
 

Bean_Paste

Lv6
管理成员
管理员
LV
0
 
IP属地
湖南省
2018/07/31
548
125
勋章
7
  • · 发布于未知
pe:
Command: ERROR: System.MissingMethodException: 找不到方法:“Terraria.Utilities.UnifiedRandom Terraria.WorldGen.get_genRand()”。
在 Replenisher.Replenisher.PrivateReplenisher(GenType type, Int32 amount, Int32& gend, UInt16 oretype, CommandArgs args)
在 Replenisher.Replenisher.Replen(CommandArgs args)
在 TShockAPI.Command.Run(String msg, Boolean silent, TSPlayer ply, List`1 parms)
PEtshock什么版本的
 

Bean_Paste

Lv6
管理成员
管理员
LV
0
 
IP属地
湖南省
2018/07/31
548
125
勋章
7
  • · 发布于未知

附件

  • Replenisher.dll
    14.5 KB · 查看: 31
IP属地
未知
2020/05/24
6
0
  • · 发布于未知
2020-05-30 21:23:17 - Command: ERROR: System.MissingMethodException: 找不到方法:“Boolean Terraria.WorldGen.AddBuriedChest(Int32, Int32, Int32, Boolean, Int32)”。
在 Replenisher.Replenisher.PrivateReplenisher(GenType type, Int32 amount, Int32& gend, UInt16 oretype, CommandArgs args)
在 Replenisher.Replenisher.Replen(CommandArgs args)
在 TShockAPI.Command.Run(String msg, Boolean silent, TSPlayer ply, List`1 parms)咋办啊[贴吧_委屈]
 

TheLastPrism

Lv6
管理成员
版主
创意家
LV
0
 
IP属地
湖北省
2019/10/25
1,027
341
勋章
5
  • · 发布于未知
报下你的TShock版本,插件冲突改代码用DnSpy
 

TheLastPrism

Lv6
管理成员
版主
创意家
LV
0
 
IP属地
湖北省
2019/10/25
1,027
341
勋章
5
  • · 发布于未知
本插件适用于1.3版本,1.4大概率无法兼容
 
  • 标签
    tshock插件
  • * 这是一则由 Google AdSense 自动推荐的广告,与本站无关,不对其真实性与可靠性负责

    顶部