Hi, Having issues with the plugin.
config as follows:
{
"CategoryID": "my channel id",
"ReplyCommand": "r",
"SteamProfileIcon": "",
"AllowedRoles": []
}
I receive this in the console feed.
DiscordCallAdmin v0.1.6: Failed to load config file (is the config file corrupt?) (Unexpected character encountered while parsing value: A. Path 'AllowedRoles', line 5, position 19.)
(14:27:11) | Failed to initialize plugin 'DiscordCallAdmin v0.1.6' (JsonReaderException: Unexpected character encountered while parsing value: A. Path 'AllowedRoles', line 5, position 20.)
at Newtonsoft.Json.JsonTextReader.ReadStringValue (Newtonsoft.Json.ReadType readType) [0x00366] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.JsonTextReader.ReadAsString () [0x00000] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, System.Boolean hasConverter) [0x00077] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList (System.Collections.IList list, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x0016f] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x000dc] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0007f] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00061] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00267] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0015c] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <2953a6e76ee34625bf5fc75750290816>:0
at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <2953a6e76ee34625bf5fc75750290816>:0
at Oxide.Core.Configuration.DynamicConfigFile.ReadObject[T] (System.String filename) [0x00028] in <ac41dd3599754d448b8c218b34645820>:0
at Oxide.Plugins.DiscordCallAdmin.Init () [0x00018] in <b2e137ed71714bee8e11ff4039612985>:0
at Oxide.Plugins.DiscordCallAdmin.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00110] in <b2e137ed71714bee8e11ff4039612985>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <98321e516fc1420ea57d4d2088213a59>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0
at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00043] in <ac41dd3599754d448b8c218b34645820>:0
(14:27:11) | Failed to initialize plugin 'DiscordCallAdmin v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.DiscordCallAdmin.Setup () [0x000a9] in <b2e137ed71714bee8e11ff4039612985>:0
at Oxide.Plugins.DiscordCallAdmin.Loaded () [0x00029] in <b2e137ed71714bee8e11ff4039612985>:0
at Oxide.Plugins.DiscordCallAdmin.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00160] in <b2e137ed71714bee8e11ff4039612985>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <98321e516fc1420ea57d4d2088213a59>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0
at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0006e] in <98321e516fc1420ea57d4d2088213a59>:0
(14:27:11) | Unloaded plugin Discord Call Admin v0.1.6 by evlad
(14:27:11) | No previous version to rollback plugin: DiscordCallAdmin