| ExType: JsonSerializationException (21:07:01) | Could not initialize plugin 'CustomChatCommands v2.1.2' (ArgumentException: Could not cast or convert from System.String to System.Collections.Generic.List`1[System.String].) at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00062] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00031] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0008d] in <7126fb4f5c5b40029458a4f975f98d13>:0 (21:07:01) | Previous version of plugin failed to load: CustomChatCommands
JsonSerializationException when customizing configurationSolved
{
"Reset Cooldowns On New Map": true,
"Reset Max Uses On New Map": true,
"Reset Max Uses At Midnight": true,
"Commands": [{
"Command": "skull",
"Messages": [
"<color=lime>Succesfully Redeemed VIP For One Week!</color>"
],
"Permission": "",
"ConsoleCmd": null,
"UserID": 0,
"Broadcast": false,
"RconCmd": "oxide.usergroup add {player.name} VIP",
"Cooldown": 0.0,
"MaxUses": 0
},
{
"Command": "website",
"Messages": [
"Insert your server website here! This is broadcasted to all users!"
],
"Permission": "customchatcommands.admin",
"ConsoleCmd": null,
"UserID": 0,
"Broadcast": true,
"RconCmd": null,
"Cooldown": 30.0,
"MaxUses": 3
},
{
"Command": "adminhelp",
"Messages": [
"Password for TeamSpeak channel: xyz",
"Discord invite: website.com/discord"
],
"Permission": "customchatcommands.admin",
"ConsoleCmd": null,
"UserID": 0,
"Broadcast": false,
"RconCmd": null,
"Cooldown": 0.0,
"MaxUses": 0
},
{
"Command": "noclip",
"Messages": [
"NoClip toggled."
],
"Permission": "customchatcommands.admin",
"ConsoleCmd": [
"noclip"
],
"UserID": 0,
"Broadcast": false,
"RconCmd": [
"say {player.name} / {player.id} has used the /noclip command!"
],
"Cooldown": 0.0,
"MaxUses": 0
}
]
}this is my config
Merged post
fixed! solution: put [] around the command ["your command here']
Locked automatically