This error can happen when you have PlayerDatabase support enabled but do not have the Player Database plugin installed; do you have it installed?
NullReferenceException at PlayerDatabase_LoadError
Wulf
This error can happen when you have PlayerDatabase support enabled but do not have the Player Database plugin installed; do you have it installed?
I had it installed and it was still doing an error, so I removed Player Database and EnhancedBanSystem plugin, installed them again and now it's fully working. Thanx.
Hey wulf, I guess I am dumb, trying to fix the enchanced ban system but I can't I saw you explained people how to do it, I did it but its still not working.
Its saying kick is an unkown command
Its saying kick is an unkown command
Load PlayerDatabase.cs, load EnhanceBanSystem.cs; test.ChokituHey wulf, I guess I am dumb, trying to fix the enchanced ban system but I can't I saw you explained people how to do it, I did it but its still not working.
Its saying kick is an unkown command
i get the same error. I have playerdatabase installed and configured. Each time i reload EnhancedBan i get
Failed to call hook 'OnServerInitialized' on plugin 'EnhancedBanSystem v5.2.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.EnhancedBanSystem.PlayerDatabase_Load () [0x00054] in :0
at Oxide.Plugins.EnhancedBanSystem.OnServerInitialized () [0x0001e] in :0
at Oxide.Plugins.EnhancedBanSystem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x013e2] in :0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0 Failed to call hook 'OnServerInitialized' on plugin 'EnhancedBanSystem v5.2.4' (JsonReaderException: Unexpected character encountered while parsing value: S. Path '', line 0, position 0.)
at Newtonsoft.Json.JsonTextReader.ParseValue () [0x002b3] in <7126fb4f5c5b40029458a4f975f98d13>:0
at Newtonsoft.Json.JsonTextReader.Read () [0x0004c] in <7126fb4f5c5b40029458a4f975f98d13>:0
at Newtonsoft.Json.JsonReader.ReadAndMoveToContent () [0x00000] in <7126fb4f5c5b40029458a4f975f98d13>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, System.Boolean hasConverter) [0x00043] in <7126fb4f5c5b40029458a4f975f98d13>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <7126fb4f5c5b40029458a4f975f98d13>:0
at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <7126fb4f5c5b40029458a4f975f98d13>:0
at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <7126fb4f5c5b40029458a4f975f98d13>:0
at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <7126fb4f5c5b40029458a4f975f98d13>:0
at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <7126fb4f5c5b40029458a4f975f98d13>:0
at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in <7126fb4f5c5b40029458a4f975f98d13>:0
at Oxide.Plugins.EnhancedBanSystem.PlayerDatabase_Load () [0x0015e] in <8a3f45d25af345c9885d0d9b041c9537>:0
at Oxide.Plugins.EnhancedBanSystem.OnServerInitialized () [0x0001e] in <8a3f45d25af345c9885d0d9b041c9537>:0
at Oxide.Plugins.EnhancedBanSystem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x013e2] in <8a3f45d25af345c9885d0d9b041c9537>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <1e2d7ad0801a4037ab6a24578c814b54>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <1fe782f4b27a43ae85d29ebb2d56c007>:0 Have you tried deleting your config file and trying again?
P4R4
Have you tried deleting your config file and trying again?
yes..
I'm not having any issues with it so it has to be something with your config or something
No its not. Im having the same issue and trying to debug since hours now. Its a Problem when you enable PlayerDatabase too in Config and something is broken.
It doesn't insert the JSON Data into PlayerDatabase (BANNED) Row. It just inserts a datatype instead of the JSON Data. Something is definatley broken.
I am getting this error now too for some reason!
I fixed it by disabling Using PlayerDatabase Files. Its not needed anyway if you have both.
| Failed to call hook 'OnServerInitialized' on plugin 'EnhancedBanSystem v5.2.4'
(NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.EnhancedBanSystem.PlayerDatabase_Load () [0x00054] in <3a1f8217ad784f118b6a3da09aa4c768>:0
at Oxide.Plugins.EnhancedBanSystem.OnServerInitialized () [0x0001e] in <3a1f8217ad784f118b6a3da09aa4c768>:0
at Oxide.Plugins.EnhancedBanSystem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x013e2] in <3a1f8217ad784f118b6a3da09aa4c768>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0
(22:51:07) | Loaded plugin Enhanced Ban System v5.2.4 by Reneb/Slut
What's going on ?
Fixed in version 5.2.6
Failed to call hook 'OnServerInitialized' on plugin 'EnhancedBanSystem v5.2.6' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.EnhancedBanSystem.PlayerDatabase_Load () [0x00054] in <dc848d77c6a048dd9816e228941d19c3>:0
at Oxide.Plugins.EnhancedBanSystem.OnServerInitialized () [0x0001e] in <dc848d77c6a048dd9816e228941d19c3>:0
at Oxide.Plugins.EnhancedBanSystem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x013e2] in <dc848d77c6a048dd9816e228941d19c3>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <12678b905a6d43c3a9cc366104306651>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <12678b905a6d43c3a9cc366104306651>:0