Refactoring Settings.cs

This commit is contained in:
BruceChen 2022-10-05 15:02:30 +08:00
parent f16b1c118b
commit 16c1d1fd77
59 changed files with 3425 additions and 2180 deletions

View file

@ -15,15 +15,16 @@ namespace MinecraftClient.Commands
string[] temp = GetArg(command).Split('=');
if (temp.Length > 1)
{
if (Settings.SetVar(temp[0], GetArg(command).Substring(temp[0].Length + 1)))
{
if (Settings.Config.AppVar.SetVar(temp[0], GetArg(command).Substring(temp[0].Length + 1)))
return ""; //Success
}
else return Translations.Get("cmd.set.format");
else
return Translations.Get("cmd.set.format");
}
else return GetCmdDescTranslated();
else
return GetCmdDescTranslated();
}
else return GetCmdDescTranslated();
else
return GetCmdDescTranslated();
}
}
}