using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HG.Reflection;
using RoR2;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: OptIn]
[assembly: AssemblyTitle("ror2sysmsg")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ror2sysmsg")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("6f18e8d4-eaa3-4b97-bd1b-5b250cceadfc")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace SystemMessageMod;
[BepInPlugin("com.DaltonGoesFast.systemmessagemod", "System Message Mod", "1.1.1")]
public class SystemMessage : BaseUnityPlugin
{
[ConCommand(/*Could not decode attribute arguments.*/)]
private static void EchoCommand(ConCommandArgs args)
{
//IL_0013: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
if (((ConCommandArgs)(ref args)).Count >= 2)
{
string text = args.userArgs[0];
string text2 = string.Join(" ", args.userArgs.Skip(1));
Chat.AddMessage("<color=" + text + ">" + text2 + "</color>");
}
else
{
Debug.Log((object)"Invalid arguments. Usage: sys_msg <color> <message>");
}
}
}