File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
EXILED/Exiled.Events/Patches/Events/Player Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ namespace Exiled.Events.Patches.Events.Player
1818 using Exiled . Events . EventArgs . Player ;
1919
2020 using HarmonyLib ;
21-
21+ using LabApi . Features . Enums ;
2222 using RemoteAdmin ;
2323
2424 using static HarmonyLib . AccessTools ;
@@ -67,8 +67,8 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
6767 // command
6868 new ( OpCodes . Ldloc_S , 4 ) ,
6969
70- // commandtype client
71- new ( OpCodes . Ldc_I4_2 ) ,
70+ // CommandType.Client
71+ new ( OpCodes . Ldc_I4_S , ( sbyte ) CommandType . Client ) ,
7272
7373 // query
7474 new ( OpCodes . Ldarg_1 ) ,
@@ -147,8 +147,8 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
147147 // command
148148 new ( OpCodes . Ldloc_1 ) ,
149149
150- // commandtype CLIENT
151- new ( OpCodes . Ldc_I4_2 ) ,
150+ // CommandType.Client
151+ new ( OpCodes . Ldc_I4_S , ( sbyte ) CommandType . Client ) ,
152152
153153 // query
154154 new ( OpCodes . Ldarg_1 ) ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ namespace Exiled.Events.Patches.Events.Player
1818 using Exiled . Events . EventArgs . Player ;
1919
2020 using HarmonyLib ;
21-
21+ using LabApi . Features . Enums ;
2222 using RemoteAdmin ;
2323
2424 using static HarmonyLib . AccessTools ;
@@ -66,8 +66,8 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
6666 // command
6767 new ( OpCodes . Ldloc_2 ) ,
6868
69- // commandtype
70- new ( OpCodes . Ldc_I4_4 ) ,
69+ // CommandType.RemoteAdmin
70+ new ( OpCodes . Ldc_I4_S , ( sbyte ) CommandType . RemoteAdmin ) ,
7171
7272 // query
7373 new ( OpCodes . Ldarg_0 ) ,
@@ -142,8 +142,8 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
142142 // command
143143 new ( OpCodes . Ldloc_2 ) ,
144144
145- // commandtype
146- new ( OpCodes . Ldc_I4_4 ) ,
145+ // CommandType.RemoteAdmin
146+ new ( OpCodes . Ldc_I4_S , ( sbyte ) CommandType . RemoteAdmin ) ,
147147
148148 // query
149149 new ( OpCodes . Ldarg_0 ) ,
You can’t perform that action at this time.
0 commit comments