fix: Fixes parsing booleans in commands. Adds ClearAll command (#1818)

This commit is contained in:
Daniel Dias Rodrigues 2024-06-03 19:42:52 -03:00 committed by GitHub
parent ad26f0a1cb
commit c69d16a90e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 121 additions and 112 deletions

View file

@ -130,6 +130,10 @@ namespace Server.Commands.Generic
{
Value = Enum.Parse(Type, toParse, true);
}
else if (Type == typeof(bool))
{
Value = bool.Parse(toParse);
}
else
{
MethodInfo parseMethod;