资源图标

原创插件 [机制/聊天/娱乐]BuffPrefix —— 给玩家戴上一个有Buff效果的称号吧![2.1] 1.2.4

没有下载许可
英文名称
BuffPrefix
中文名称
效果称号
插件来源
原创
API类型
TerrariaServerAPI
插件类型
  1. 娱乐
  2. 信息
语言支持
  1. 简体中文
适用版本
  1. 1.3.5.3
  2. 1.3.0.7
前置Mod/插件
下载地址
本帖
原帖地址
本帖
开源地址
API版本
2.1

xiaoxizs

Lv2
LV
0
 
IP属地
上海市
2022/04/18
6
1
  • · 发布于未知
创建称号报错,是不是指令有问题
/bpadmin create &b的
2022-06-05 15:06:07 - Utils: INFO: 0000 executed: /bpadmin create &b的.
2022-06-05 15:06:07 - Command: ERROR: Mono.Data.Sqlite.SqliteException (0x80004005): SQLite error
table prefixes has no column named NameColor
at Mono.Data.Sqlite.SQLite3.Prepare (Mono.Data.Sqlite.SqliteConnection cnn, System.String strSql, Mono.Data.Sqlite.SqliteStatement previous, System.UInt32 timeoutMS, System.String& strRemain) [0x00236] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at Mono.Data.Sqlite.SqliteCommand.BuildNextCommand () [0x000eb] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at Mono.Data.Sqlite.SqliteCommand.GetStatement (System.Int32 index) [0x0000b] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at (wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteCommand.GetStatement(int)
at Mono.Data.Sqlite.SqliteDataReader.NextResult () [0x000cc] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at Mono.Data.Sqlite.SqliteDataReader..ctor (Mono.Data.Sqlite.SqliteCommand cmd, System.Data.CommandBehavior behave) [0x00051] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at (wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteDataReader..ctor(Mono.Data.Sqlite.SqliteCommand,System.Data.CommandBehavior)
at Mono.Data.Sqlite.SqliteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x00006] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at Mono.Data.Sqlite.SqliteCommand.ExecuteNonQuery () [0x00000] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at TShockAPI.DB.DbExt.Query (System.Data.IDbConnection olddb, System.String query, System.Object[] args) [0x00044] in <20feefd05f2a493c86d390f294756db9>:0
at BuffPrefixV2.DBManager.AddPrefix (BuffPrefixV2.Prefix prefix) [0x0002d] in <b3c3f72ed001438383674b04a0069aac>:0
at BuffPrefixV2.Main.BPAdmin (TShockAPI.CommandArgs args) [0x00347] in <b3c3f72ed001438383674b04a0069aac>:0
at TShockAPI.Command.Run (System.String msg, System.Boolean silent, TShockAPI.TSPlayer ply, System.Collections.Generic.List`1[T] parms) [0x0001c] in <20feefd05f2a493c86d390f294756db9>:0
 

Bean_Paste

Lv6
管理成员
管理员
LV
0
 
IP属地
湖南省
2018/07/31
548
125
勋章
7
  • · 发布于未知
创建称号报错,是不是指令有问题
/bpadmin create &b的
2022-06-05 15:06:07 - Utils: INFO: 0000 executed: /bpadmin create &b的.
2022-06-05 15:06:07 - Command: ERROR: Mono.Data.Sqlite.SqliteException (0x80004005): SQLite error
table prefixes has no column named NameColor
at Mono.Data.Sqlite.SQLite3.Prepare (Mono.Data.Sqlite.SqliteConnection cnn, System.String strSql, Mono.Data.Sqlite.SqliteStatement previous, System.UInt32 timeoutMS, System.String& strRemain) [0x00236] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at Mono.Data.Sqlite.SqliteCommand.BuildNextCommand () [0x000eb] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at Mono.Data.Sqlite.SqliteCommand.GetStatement (System.Int32 index) [0x0000b] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at (wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteCommand.GetStatement(int)
at Mono.Data.Sqlite.SqliteDataReader.NextResult () [0x000cc] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at Mono.Data.Sqlite.SqliteDataReader..ctor (Mono.Data.Sqlite.SqliteCommand cmd, System.Data.CommandBehavior behave) [0x00051] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at (wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteDataReader..ctor(Mono.Data.Sqlite.SqliteCommand,System.Data.CommandBehavior)
at Mono.Data.Sqlite.SqliteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x00006] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at Mono.Data.Sqlite.SqliteCommand.ExecuteNonQuery () [0x00000] in <2f714ef98a8f4e73b149f84ee80555a1>:0
at TShockAPI.DB.DbExt.Query (System.Data.IDbConnection olddb, System.String query, System.Object[] args) [0x00044] in <20feefd05f2a493c86d390f294756db9>:0
at BuffPrefixV2.DBManager.AddPrefix (BuffPrefixV2.Prefix prefix) [0x0002d] in <b3c3f72ed001438383674b04a0069aac>:0
at BuffPrefixV2.Main.BPAdmin (TShockAPI.CommandArgs args) [0x00347] in <b3c3f72ed001438383674b04a0069aac>:0
at TShockAPI.Command.Run (System.String msg, System.Boolean silent, TShockAPI.TSPlayer ply, System.Collections.Generic.List`1[T] parms) [0x0001c] in <20feefd05f2a493c86d390f294756db9>:0
你可以把原来的数据表删除然后重新生成
 

736155570

Lv2
LV
0
 
IP属地
河南省
2022/02/17
12
0
  • · 发布于未知
[Server API] Warning Plugin "BeanChat" has had an unhandled exception thrown by one of its ServerChat handlers:
System.NullReferenceException: Object reference not set to an instance of an object
at BuffPrefixV2.Main.OnGetText (PlaceholderAPI.Hooks+GetTextArgs args) [0x00042] in <b3c3f72ed001438383674b04a0069aac>:0
at (wrapper delegate-invoke) <Module>.invoke_void_Hooks/GetTextArgs(PlaceholderAPI.Hooks/GetTextArgs)
at PlaceholderAPI.Hooks.OnGetText (System.Collections.Generic.Dictionary`2[TKey,TValue] list, TShockAPI.TSPlayer player) [0x00014] in <7f2ef66caca9483abbb4c7a14d4ab9c0>:0
at PlaceholderAPI.PlaceholderManager.GetText (System.String text, TShockAPI.TSPlayer player) [0x00000] in <7f2ef66caca9483abbb4c7a14d4ab9c0>:0
at BeanChat.MainPlugin.OnChat (TerrariaApi.Server.ServerChatEventArgs args) [0x00081] in <286e96dd5586488bba8b9372ee72deb5>:0
at TerrariaApi.Server.HandlerCollection`1[ArgsType].Invoke (ArgsType args) [0x0004d] in <c8b4d495d61446e9a784fcc2bffb6307>:0
大佬看看这是什么问题呢 一加上BuffPrefix就是这样
 

Bean_Paste

Lv6
管理成员
管理员
LV
0
 
IP属地
湖南省
2018/07/31
548
125
勋章
7
  • · 发布于未知
[Server API] Warning Plugin "BeanChat" has had an unhandled exception thrown by one of its ServerChat handlers:
System.NullReferenceException: Object reference not set to an instance of an object
at BuffPrefixV2.Main.OnGetText (PlaceholderAPI.Hooks+GetTextArgs args) [0x00042] in <b3c3f72ed001438383674b04a0069aac>:0
at (wrapper delegate-invoke) <Module>.invoke_void_Hooks/GetTextArgs(PlaceholderAPI.Hooks/GetTextArgs)
at PlaceholderAPI.Hooks.OnGetText (System.Collections.Generic.Dictionary`2[TKey,TValue] list, TShockAPI.TSPlayer player) [0x00014] in <7f2ef66caca9483abbb4c7a14d4ab9c0>:0
at PlaceholderAPI.PlaceholderManager.GetText (System.String text, TShockAPI.TSPlayer player) [0x00000] in <7f2ef66caca9483abbb4c7a14d4ab9c0>:0
at BeanChat.MainPlugin.OnChat (TerrariaApi.Server.ServerChatEventArgs args) [0x00081] in <286e96dd5586488bba8b9372ee72deb5>:0
at TerrariaApi.Server.HandlerCollection`1[ArgsType].Invoke (ArgsType args) [0x0004d] in <c8b4d495d61446e9a784fcc2bffb6307>:0
大佬看看这是什么问题呢 一加上BuffPrefix就是这样
请问您的PlaceholderAPI装了吗?
 

35117

Lv3
LV
0
 
IP属地
山东省
2021/06/13
41
3
  • · 发布于未知
很奇怪,创建时报错,但是可以创建成功
加一句,重启后称号清空
在加一句,例如玩家佩戴称号序号为2,但2称号没有时会报错
 

附件

  • 1655014024100.png
    1655014024100.png
    7 KB · 查看: 0
  • 1655014035091.png
    1655014035091.png
    1.5 KB · 查看: 0
  • 1655014038216.png
    1655014038216.png
    68.7 KB · 查看: 0
  • 1655014154098.png
    1655014154098.png
    7.6 KB · 查看: 0
  • 1655015228462.png
    1655015228462.png
    4.5 KB · 查看: 0
  • 1655015293198.png
    1655015293198.png
    52 KB · 查看: 0
最后编辑:

唉唉有

Lv3
LV
0
 
IP属地
广东省
2020/05/23
41
8
  • · 发布于未知
[Server API] Error Startup aborted due to an exception in the Server API initialization:
System.InvalidOperationException: Plugin "BuffPrefix" has thrown an exception during initialization. ---> System.IO.FileNotFoundException: Could not load file or assembly 'PlaceholderAPI, Version=1.0.0.6, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 系统找不到指定的文件。
at BuffPrefixV2.Main.Initialize()
at TerrariaApi.Server.ServerApi.LoadPlugins() in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\ServerApi.cs:line 383
--- End of inner exception stack trace ---
at TerrariaApi.Server.ServerApi.LoadPlugins() in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\ServerApi.cs:line 388
at TerrariaApi.Server.ServerApi.Initialize(String[] commandLineArgs, Main game) in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\ServerApi.cs:line 116
at TerrariaApi.Server.HookManager.InitialiseAPI() in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\HookManager.cs:line 28
加了万用占用占位,

[Server API] Error Startup aborted due to an exception in the Server API initialization:
System.InvalidOperationException: Plugin "BeanChat" has thrown an exception during initialization. ---> System.IO.FileNotFoundException: Could not load file or assembly 'PlaceholderAPI, Version=1.0.0.5, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 系统找不到指定的文件。
at BeanChat.MainPlugin.Initialize()
at TerrariaApi.Server.ServerApi.LoadPlugins() in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\ServerApi.cs:line 383
--- End of inner exception stack trace ---
at TerrariaApi.Server.ServerApi.LoadPlugins() in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\ServerApi.cs:line 388
at TerrariaApi.Server.ServerApi.Initialize(String[] commandLineArgs, Main game) in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\ServerApi.cs:line 116
at TerrariaApi.Server.HookManager.InitialiseAPI() in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\HookManager.cs:line 28
这个是万用占用占位与beanchat都加了的报错
 

唉唉有

Lv3
LV
0
 
IP属地
广东省
2020/05/23
41
8
  • · 发布于未知
改了插件名字,解决了
 

Smelody

Lv2
LV
0
 
IP属地
河南省
2022/01/18
3
0
  • · 发布于未知
IMG_20220624_100525.jpg
请问玩家佩戴称号后但发言时没有称号是怎么回事
 

誓约猫

Lv2
LV
0
 
IP属地
广西
2021/07/04
42
1
  • · 发布于未知
1657019292113.png
一个问题,添加称号有bug,让人以为称号添加不了,其实已经添加上去了
1657019404238.png
 

誓约猫

Lv2
LV
0
 
IP属地
广西
2021/07/04
42
1
  • · 发布于未知
输入戴上指令显示没权限(已经给过权限),而且也不显示。但是你给称号加buff之后会获得buff...
戴上了,但没完全戴上[向导_叹气]
 

Smelody

Lv2
LV
0
 
IP属地
河南省
2022/01/18
3
0
  • · 发布于未知
输入戴上指令显示没权限(已经给过权限),而且也不显示。但是你给称号加buff之后会获得buff...
戴上了,但没完全戴上[向导_叹气]
我也一样
 

神秘感

Lv3
LV
0
 
IP属地
辽宁省
2022/03/09
64
1
  • · 发布于辽宁省
支持1.4.4.9吗?
 

神秘感

Lv3
LV
0
 
IP属地
辽宁省
2022/03/09
64
1
  • · 发布于辽宁省
请问可以更新一下吗?
 
  • 标签
    bufftag tshock tshock插件 原创插件 泰拉瑞亚服务器
  • * 这是一则由 Google AdSense 自动推荐的广告,与本站无关,不对其真实性与可靠性负责

    顶部