private void GetCfg(CommandArgs command, OperationResult result) { if (!Client.Validate(command.Sender)) { command.Reply(Messages.CmdNotAuthorised); return; } var key = result.Arguments["config-key"]; var value = MiscTools.GetDynamic(key.Split('.').Select(k => k.ToPascalCase()).ToArray(), ConfigManager.Config); command.Reply($"{(string.IsNullOrEmpty(key) ? "config" : "config." + key)} = {value}"); }