[管理]BetterWhitelist —— 检测玩家用户名的白名单[2.1]

原创插件 [管理]BetterWhitelist —— 检测玩家用户名的白名单[2.1] 2.2.1

没有下载许可
英文名称
BetterWhitelist
中文名称
更好的白名单
插件来源
原创
API类型
TerrariaServerAPI
插件类型
  1. 管理
  2. 安全
语言支持
  1. 简体中文
适用版本
  1. 1.3.5.3
  2. 1.4
前置Mod/插件
TShock
下载地址
https://www.bbstr.net/threads/betterwhitelist-2-1.151/
原帖地址
https://www.bbstr.net/threads/betterwhitelist-2-1.151/
开源地址
https://gitee.com/Crafty/BetterWhitelist
API版本
2.1

hanfeng

Lv3
LV
0
 
IP属地
江苏省
2020/08/07
34
2
  • · 发布于未知
中文显示乱码?是插件冲突吗QQ图片20210227211337.png
 

625242llk

Lv2
LV
0
 
IP属地
未知
2021/01/28
1
0
  • · 发布于未知
无意义消息
dhisdufhehwijd
 

hufang360

Lv4
LV
0
 
IP属地
江西省
2020/05/28
73
34
  • · 发布于未知

Bean_Paste

Lv6
管理成员
管理员
LV
0
 
IP属地
湖南省
2018/07/31
548
125
勋章
7
  • · 发布于未知
感谢大佬!我拿你的源码重新编译了,支持了1.4.0.5和1.4.2.3,提示文本改成了中文,然后去掉了语言配置支持。插件下载地址:
(突然诈尸)没想到这小玩意会有那么多反响,感谢大佬对该插件的贡献和付出!
 

眼里有星河

Lv3
LV
0
 
IP属地
河北省
2020/09/30
40
1
勋章
2
  • · 发布于未知
报错
[07/08/21 16:13:22] [Server API] Warning: Plugin "BetterWhitelist" has had an unhandled exception thrown by one of its ServerJoin handlers:
System.ArgumentException: 已添加了具有相同键的项。
在 System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
在 System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
在 BetterWhitelist.Main.OnJoin(JoinEventArgs args)
在 TerrariaApi.Server.HandlerCollection`1.Invoke(ArgsType args)
 

Bean_Paste

Lv6
管理成员
管理员
LV
0
 
IP属地
湖南省
2018/07/31
548
125
勋章
7
  • · 发布于未知
报错
[07/08/21 16:13:22] [Server API] Warning: Plugin "BetterWhitelist" has had an unhandled exception thrown by one of its ServerJoin handlers:
System.ArgumentException: 已添加了具有相同键的项。
在 System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
在 System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
在 BetterWhitelist.Main.OnJoin(JoinEventArgs args)
在 TerrariaApi.Server.HandlerCollection`1.Invoke(ArgsType args)
你重复添加了吧!这个可能在下个版本修复 (这个作品好久之前的了,很多代码都不成熟)
 

眼里有星河

Lv3
LV
0
 
IP属地
河北省
2020/09/30
40
1
勋章
2
  • · 发布于未知
你重复添加了吧!这个可能在下个版本修复 (这个作品好久之前的了,很多代码都不成熟)
好的,谢谢,坐等更新
 

hanfeng

Lv3
LV
0
 
IP属地
江苏省
2020/08/07
34
2
  • · 发布于未知
json简化了?没传错文件吧?
 

Bean_Paste

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

hanfeng

Lv3
LV
0
 
IP属地
江苏省
2020/08/07
34
2
  • · 发布于未知
1626232386947.png我说的简化是现在只有这个了,以前不是还有个语言选项和开关吗,是简化吗
 

Bean_Paste

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

aaa1115910

Lv3
LV
0
 
IP属地
山东省
2021/02/23
4
8
  • · 发布于未知
使用api删除白名单时,配置文件里面删除成功但是api会报错
JSON:
{
  "status": "500",
  "error": "Internal server error.",
  "errormsg": "Index was out of range. Must be non-negative and less than the size of the collection.\nParameter name: index",
  "stacktrace": "  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x0000c] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 \n  at BetterWhitelist.Main.DelPlayer (Rests.RestRequestArgs args) [0x0002a] in <cbd1a0d43ac2472cb5c768ead190cec9>:0 \n  at Rests.SecureRestCommand.Execute (Rests.RestVerbs verbs, HttpServer.IParameterCollection parameters, Rests.SecureRest+TokenData tokenData, HttpServer.IRequest request, HttpServer.IHttpContext context) [0x00041] in <83f37e9b88a54d20b5a44206e189e9cf>:0 \n  at Rests.SecureRest.ExecuteCommand (Rests.RestCommand cmd, Rests.RestVerbs verbs, HttpServer.IParameterCollection parms, HttpServer.IRequest request, HttpServer.IHttpContext context) [0x00115] in <83f37e9b88a54d20b5a44206e189e9cf>:0 \n  at Rests.Rest.ProcessRequest (System.Object sender, HttpServer.RequestEventArgs e) [0x00125] in <83f37e9b88a54d20b5a44206e189e9cf>:0 "
}
另外提个建议,获取白名单时采用数组显示应该会更好吧
JSON:
{
  "status": "200",
  "players": "mix\n1\n"
}
 

Bean_Paste

Lv6
管理成员
管理员
LV
0
 
IP属地
湖南省
2018/07/31
548
125
勋章
7
  • · 发布于未知
使用api删除白名单时,配置文件里面删除成功但是api会报错
JSON:
{
  "status": "500",
  "error": "Internal server error.",
  "errormsg": "Index was out of range. Must be non-negative and less than the size of the collection.\nParameter name: index",
  "stacktrace": "  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x0000c] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 \n  at BetterWhitelist.Main.DelPlayer (Rests.RestRequestArgs args) [0x0002a] in <cbd1a0d43ac2472cb5c768ead190cec9>:0 \n  at Rests.SecureRestCommand.Execute (Rests.RestVerbs verbs, HttpServer.IParameterCollection parameters, Rests.SecureRest+TokenData tokenData, HttpServer.IRequest request, HttpServer.IHttpContext context) [0x00041] in <83f37e9b88a54d20b5a44206e189e9cf>:0 \n  at Rests.SecureRest.ExecuteCommand (Rests.RestCommand cmd, Rests.RestVerbs verbs, HttpServer.IParameterCollection parms, HttpServer.IRequest request, HttpServer.IHttpContext context) [0x00115] in <83f37e9b88a54d20b5a44206e189e9cf>:0 \n  at Rests.Rest.ProcessRequest (System.Object sender, HttpServer.RequestEventArgs e) [0x00125] in <83f37e9b88a54d20b5a44206e189e9cf>:0 "
}
另外提个建议,获取白名单时采用数组显示应该会更好吧
JSON:
{
  "status": "200",
  "players": "mix\n1\n"
}
好,有空进行改进改进
 

洛小小

Lv3
LV
0
 
IP属地
亚太地区
2021/02/09
12
2
  • · 发布于未知
没看懂 这个插件有啥用?
 

gguuglgg

Lv2
LV
0
 
IP属地
山东省
2022/08/16
6
1
  • · 发布于未知
支持1.4.4.x吗
 
  • 标签
    tshock插件 服务器插件 白名单
  • * 这是一则由 Google AdSense 自动推荐的广告,与本站无关,不对其真实性与可靠性负责

    顶部