HerrMagiic / CSS-CreateCustomCommands

The Custom Commands Plugin allows you to create and customize commands for your server. These commands can display messages, perform server-side actions, and more.
https://github.com/HerrMagiic/CSS-CreateCustomCommands/tree/main/Examples
MIT License
45 stars 1 forks source link

unable to reload custom commands #64

Closed jke-cs closed 2 months ago

jke-cs commented 2 months ago

22:12:33 [INFO] (cssharp:PluginContext) Unloading plugin CustomCommands 22:12:33 [INFO] (cssharp:PluginContext) Finished unloading plugin CustomCommands 22:12:33 [INFO] (cssharp:PluginContext) Loading plugin CustomCommands 22:12:33 [EROR] (cssharp:ConfigManager) Failed to parse configuration file for CustomCommands System.Text.Json.JsonException: The JSON value could not be converted to CustomCommands.CustomCommandsConfig. Path: $ | LineNumber: 0 | BytePositionInLine: 1. at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue) at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 utf8Json, JsonTypeInfo1 jsonTypeInfo, Nullable1 actualByteCount) at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 json, JsonTypeInfo1 jsonTypeInfo) at CounterStrikeSharp.API.Modules.Config.ConfigManager.Load[T](String pluginName) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Modules/Config/ConfigManager.cs:line 86

jke-cs commented 2 months ago

my fault sorry