Some mods may be broken due to the recent Alloyed Collective update.
Decompiled source of MultiplayerModTesting v1.0.2
MultiplayerModTesting.dll
Decompiled a year agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using Microsoft.CodeAnalysis; using On.RoR2.Networking; using RiskOfOptions; using RiskOfOptions.Options; using RoR2.Networking; using UnityEngine.Networking; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("MultiplayerModTesting")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("MultiplayerModTesting")] [assembly: AssemblyTitle("MultiplayerModTesting")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace MultiplayerModTesting { [BepInPlugin("com.Nuxlar.MultiplayerModTesting", "MultiplayerModTesting", "1.0.2")] public class MultiplayerModTesting : BaseUnityPlugin { public static ConfigEntry<bool> enableTesting; private static ConfigFile MMTConfig { get; set; } public void Awake() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Expected O, but got Unknown MMTConfig = new ConfigFile(Paths.ConfigPath + "\\com.Nuxlar.MultiplayerModTesting.cfg", true); enableTesting = MMTConfig.Bind<bool>("General", "Enable Testing", false, "Enable when testing multiplayer"); enableTesting.SettingChanged += delegate { //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Expected O, but got Unknown //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Expected O, but got Unknown if (enableTesting.Value) { NetworkManagerSystemSteam.OnClientConnect += new hook_OnClientConnect(Empty); } else { NetworkManagerSystemSteam.OnClientConnect -= new hook_OnClientConnect(Empty); } }; ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(enableTesting)); ModSettingsManager.SetModDescription("Mod for testing mods in multiplayer locally."); if (enableTesting.Value) { NetworkManagerSystemSteam.OnClientConnect += new hook_OnClientConnect(Empty); } } private void Empty(orig_OnClientConnect orig, NetworkManagerSystemSteam self, NetworkConnection conn) { } } }