From 3f43ad05875e97114bf6841a9f044e137ec0d7b3 Mon Sep 17 00:00:00 2001 From: Mariki Date: Thu, 31 Oct 2024 18:42:26 +0300 Subject: [PATCH 01/14] Added Event --- .../Player/SendingCommandEventArgs.cs | 70 ++++++++++ EXILED/Exiled.Events/Handlers/Player.cs | 11 ++ .../Patches/Events/Player/SendingCommand.cs | 125 ++++++++++++++++++ 3 files changed, 206 insertions(+) create mode 100644 EXILED/Exiled.Events/EventArgs/Player/SendingCommandEventArgs.cs create mode 100644 EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs diff --git a/EXILED/Exiled.Events/EventArgs/Player/SendingCommandEventArgs.cs b/EXILED/Exiled.Events/EventArgs/Player/SendingCommandEventArgs.cs new file mode 100644 index 000000000..585c78ecd --- /dev/null +++ b/EXILED/Exiled.Events/EventArgs/Player/SendingCommandEventArgs.cs @@ -0,0 +1,70 @@ +// ----------------------------------------------------------------------- +// +// Copyright (c) Exiled Team. All rights reserved. +// Licensed under the CC BY-SA 3.0 license. +// +// ----------------------------------------------------------------------- + +namespace Exiled.Events.EventArgs.Player +{ + using CommandSystem; + using Exiled.API.Features; + using Exiled.API.Features.Pickups; + using Exiled.Events.EventArgs.Interfaces; + + using RemoteAdmin; + + /// + /// Contains all information before a player sends a command. + /// + public class SendingCommandEventArgs : IPlayerEvent, IDeniableEvent + { + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + public SendingCommandEventArgs(Player player, ICommand command, string query, string response) + { + Player = player; + Command = command; + Query = query; + Response = response; + } + + /// + /// Gets or sets a value indicating whether the player can send a command. + /// + public bool IsAllowed { get; set; } + + /// + /// Gets or sets the response of the command. If this value is null, the response will stay unchanged. + /// + public string Response { get; set; } + + /// + /// Gets the player who is sending the command. + /// + public Player Player { get; } + + /// + /// Gets the command query. + /// + public string Query { get; } + + /// + /// Gets the command interface. + /// + public ICommand Command { get; } + } +} diff --git a/EXILED/Exiled.Events/Handlers/Player.cs b/EXILED/Exiled.Events/Handlers/Player.cs index 2e6209741..dc944116c 100644 --- a/EXILED/Exiled.Events/Handlers/Player.cs +++ b/EXILED/Exiled.Events/Handlers/Player.cs @@ -540,6 +540,11 @@ public class Player /// public static Event ChangingNickname { get; set; } = new(); + /// + /// Invoked before a sended command. + /// + public static Event SendingCommand { get; set; } = new(); + /// /// Called before reserved slot is resolved for a . /// @@ -1164,6 +1169,12 @@ public static void OnItemRemoved(ReferenceHub referenceHub, InventorySystem.Item /// The instance. public static void OnChangingNickname(ChangingNicknameEventArgs ev) => ChangingNickname.InvokeSafely(ev); + /// + /// Called before a 's sended command. + /// + /// The instance. + public static void OnSendingCommand(SendingCommandEventArgs ev) => SendingCommand.InvokeSafely(ev); + /// /// Called before pre-authenticating a . /// diff --git a/EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs b/EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs new file mode 100644 index 000000000..6e60dc79a --- /dev/null +++ b/EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs @@ -0,0 +1,125 @@ +// ----------------------------------------------------------------------- +// +// Copyright (c) Exiled Team. All rights reserved. +// Licensed under the CC BY-SA 3.0 license. +// +// ----------------------------------------------------------------------- + +namespace Exiled.Events.Patches.Events.Player +{ + using System; + using System.Collections.Generic; + using System.Reflection.Emit; + + using API.Features; + using API.Features.Pools; + using CommandSystem; + using Exiled.Events.Attributes; + using Exiled.Events.EventArgs.Player; + + using HarmonyLib; + + using RemoteAdmin; + + using static HarmonyLib.AccessTools; + + /// + /// Patches . + /// Adds the event. + /// + [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.SendingCommand))] + [HarmonyPatch(typeof(CommandProcessor), nameof(CommandProcessor.ProcessQuery))] + internal static class SendingCommand + { + private static IEnumerable Transpiler(IEnumerable instructions, ILGenerator generator) + { + List newInstructions = ListPool.Pool.Get(instructions); + + Label ret = generator.DefineLabel(); + newInstructions[newInstructions.Count - 1].labels.Add(ret); + + LocalBuilder ev = generator.DeclareLocal(typeof(SendingCommandEventArgs)); + + int offset = 2; + int index = newInstructions.FindIndex(instruction => instruction.Calls(Method(typeof(CommandHandler), nameof(CommandHandler.TryGetCommand)))) + offset; + + Label contlabel = generator.DefineLabel(); + newInstructions[index].WithLabels(contlabel); + + int sendreplyidx = newInstructions.FindIndex(instructions => instructions.Calls(Method(typeof(string), nameof(string.IsNullOrEmpty)))) + offset; + Label sendreply = generator.DefineLabel(); + newInstructions[sendreplyidx].WithLabels(sendreply); + + newInstructions.InsertRange( + index, + new CodeInstruction[] + { + // sender + new (OpCodes.Ldarg_1), + + // Player.Get(sender) + new (OpCodes.Call, Method(typeof(Player), nameof(Player.Get), new Type[] { typeof(CommandSender) })), + + // command + new (OpCodes.Ldloc_1), + + // query + new (OpCodes.Ldarg_0), + + // response + new (OpCodes.Ldloc_S, 6), + + // SendingCommandEventArgs ev = new SendingCommandEventargs(); + new (OpCodes.Newobj, GetDeclaredConstructors(typeof(EventArgs))[0]), + new (OpCodes.Dup), + new (OpCodes.Stloc_S, ev.LocalIndex), + + // Player.OnSendingCommand(ev) + new (OpCodes.Call, Method(typeof(Handlers.Player), nameof(Handlers.Player.OnSendingCommand))), + + // if ev.IsAllowed=>cont + new (OpCodes.Ldloc_S, ev.LocalIndex), + new (OpCodes.Callvirt, PropertyGetter(typeof(SendingCommandEventArgs), nameof(SendingCommandEventArgs.IsAllowed))), + new (OpCodes.Brtrue_S, contlabel), + + // if ev.Response == null=>ret + new (OpCodes.Ldloc_S, ev.LocalIndex), + new (OpCodes.Callvirt, PropertyGetter(typeof(SendingCommandEventArgs), nameof(SendingCommandEventArgs.Response))), + new (OpCodes.Call, Method(typeof(string), nameof(string.IsNullOrEmpty))), + new (OpCodes.Brtrue_S, ret), + + // response = ev.Response + new (OpCodes.Ldloc_S, ev.LocalIndex), + new (OpCodes.Callvirt, PropertyGetter(typeof(SendingCommandEventArgs), nameof(SendingCommandEventArgs.Response))), + new (OpCodes.Stloc_S, 6), + + // goto sendreply + new (OpCodes.Br, sendreply), + }); + offset = -4; + index = newInstructions.FindIndex(instruction => instruction.Calls(Method(typeof(string), nameof(string.ToUpperInvariant)))) + offset; + Label skip = generator.DefineLabel(); + newInstructions[index].WithLabels(skip); + newInstructions.InsertRange( + index, + new CodeInstruction[] + { + // if ev.Response == null=>skip + new (OpCodes.Ldloc_S, ev.LocalIndex), + new (OpCodes.Callvirt, PropertyGetter(typeof (SendingCommandEventArgs), nameof(SendingCommandEventArgs.Response))), + new (OpCodes.Call, Method(typeof(string), nameof(string.IsNullOrEmpty))), + new (OpCodes.Brtrue_S, skip), + + // response = ev.Response + new (OpCodes.Ldloc_S, ev.LocalIndex), + new (OpCodes.Callvirt, PropertyGetter(typeof (SendingCommandEventArgs), nameof(SendingCommandEventArgs.Response))), + new (OpCodes.Stloc_S, 6), + }); + + for (int z = 0; z < newInstructions.Count; z++) + yield return newInstructions[z]; + + ListPool.Pool.Return(newInstructions); + } + } +} \ No newline at end of file From 22ed05e957ac21114a4b181ec31cd0f25fce6bce Mon Sep 17 00:00:00 2001 From: Mariki Date: Thu, 31 Oct 2024 20:11:11 +0300 Subject: [PATCH 02/14] adk how but i broke this while adding comments.......... --- .../Patches/Events/Player/SendingCommand.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs b/EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs index 6e60dc79a..e79f501fa 100644 --- a/EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs +++ b/EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs @@ -39,7 +39,6 @@ private static IEnumerable Transpiler(IEnumerable instruction.Calls(Method(typeof(CommandHandler), nameof(CommandHandler.TryGetCommand)))) + offset; @@ -47,6 +46,7 @@ private static IEnumerable Transpiler(IEnumerable instructions.Calls(Method(typeof(string), nameof(string.IsNullOrEmpty)))) + offset; + Label sendreply = generator.DefineLabel(); newInstructions[sendreplyidx].WithLabels(sendreply); @@ -57,7 +57,7 @@ private static IEnumerable Transpiler(IEnumerable Transpiler(IEnumerablecont + // if ev.IsAllowed cont new (OpCodes.Ldloc_S, ev.LocalIndex), new (OpCodes.Callvirt, PropertyGetter(typeof(SendingCommandEventArgs), nameof(SendingCommandEventArgs.IsAllowed))), new (OpCodes.Brtrue_S, contlabel), - // if ev.Response == null=>ret + // if ev.Response.IsNullOrEmpty rets new (OpCodes.Ldloc_S, ev.LocalIndex), - new (OpCodes.Callvirt, PropertyGetter(typeof(SendingCommandEventArgs), nameof(SendingCommandEventArgs.Response))), + new (OpCodes.Callvirt, PropertyGetter(typeof (SendingCommandEventArgs), nameof(SendingCommandEventArgs.Response))), new (OpCodes.Call, Method(typeof(string), nameof(string.IsNullOrEmpty))), new (OpCodes.Brtrue_S, ret), // response = ev.Response new (OpCodes.Ldloc_S, ev.LocalIndex), - new (OpCodes.Callvirt, PropertyGetter(typeof(SendingCommandEventArgs), nameof(SendingCommandEventArgs.Response))), + new (OpCodes.Callvirt, PropertyGetter(typeof (SendingCommandEventArgs), nameof(SendingCommandEventArgs.Response))), new (OpCodes.Stloc_S, 6), // goto sendreply @@ -104,7 +104,7 @@ private static IEnumerable Transpiler(IEnumerableskip + // if ev.Response.IsNullOrEmpty skip new (OpCodes.Ldloc_S, ev.LocalIndex), new (OpCodes.Callvirt, PropertyGetter(typeof (SendingCommandEventArgs), nameof(SendingCommandEventArgs.Response))), new (OpCodes.Call, Method(typeof(string), nameof(string.IsNullOrEmpty))), From 4b3144452f795e7255b98b4b3f896c2b395d27f3 Mon Sep 17 00:00:00 2001 From: Mariki Date: Fri, 1 Nov 2024 09:53:15 +0300 Subject: [PATCH 03/14] Added Some Features, and changed event name. --- ...s.cs => SendingValidRACommandEventArgs.cs} | 8 ++--- EXILED/Exiled.Events/Handlers/Player.cs | 6 ++-- ...ingCommand.cs => SendingValidRACommand.cs} | 36 +++++++++++-------- 3 files changed, 28 insertions(+), 22 deletions(-) rename EXILED/Exiled.Events/EventArgs/Player/{SendingCommandEventArgs.cs => SendingValidRACommandEventArgs.cs} (86%) rename EXILED/Exiled.Events/Patches/Events/Player/{SendingCommand.cs => SendingValidRACommand.cs} (78%) diff --git a/EXILED/Exiled.Events/EventArgs/Player/SendingCommandEventArgs.cs b/EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs similarity index 86% rename from EXILED/Exiled.Events/EventArgs/Player/SendingCommandEventArgs.cs rename to EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs index 585c78ecd..e4757b3fd 100644 --- a/EXILED/Exiled.Events/EventArgs/Player/SendingCommandEventArgs.cs +++ b/EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs @@ -1,5 +1,5 @@ // ----------------------------------------------------------------------- -// +// // Copyright (c) Exiled Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. // @@ -17,10 +17,10 @@ namespace Exiled.Events.EventArgs.Player /// /// Contains all information before a player sends a command. /// - public class SendingCommandEventArgs : IPlayerEvent, IDeniableEvent + public class SendingValidRACommandEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -34,7 +34,7 @@ public class SendingCommandEventArgs : IPlayerEvent, IDeniableEvent /// /// /// - public SendingCommandEventArgs(Player player, ICommand command, string query, string response) + public SendingValidRACommandEventArgs(Player player, ICommand command, string query, string response) { Player = player; Command = command; diff --git a/EXILED/Exiled.Events/Handlers/Player.cs b/EXILED/Exiled.Events/Handlers/Player.cs index dc944116c..495928cc6 100644 --- a/EXILED/Exiled.Events/Handlers/Player.cs +++ b/EXILED/Exiled.Events/Handlers/Player.cs @@ -543,7 +543,7 @@ public class Player /// /// Invoked before a sended command. /// - public static Event SendingCommand { get; set; } = new(); + public static Event SendingValidRACommand { get; set; } = new(); /// /// Called before reserved slot is resolved for a . @@ -1172,8 +1172,8 @@ public static void OnItemRemoved(ReferenceHub referenceHub, InventorySystem.Item /// /// Called before a 's sended command. /// - /// The instance. - public static void OnSendingCommand(SendingCommandEventArgs ev) => SendingCommand.InvokeSafely(ev); + /// The instance. + public static void OnSendingValidRACommand(SendingValidRACommandEventArgs ev) => SendingValidRACommand.InvokeSafely(ev); /// /// Called before pre-authenticating a . diff --git a/EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs b/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs similarity index 78% rename from EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs rename to EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs index e79f501fa..7870bb9f2 100644 --- a/EXILED/Exiled.Events/Patches/Events/Player/SendingCommand.cs +++ b/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs @@ -1,5 +1,5 @@ // ----------------------------------------------------------------------- -// +// // Copyright (c) Exiled Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. // @@ -25,20 +25,21 @@ namespace Exiled.Events.Patches.Events.Player /// /// Patches . - /// Adds the event. + /// Adds the event. /// - [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.SendingCommand))] + [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.SendingValidRACommand))] [HarmonyPatch(typeof(CommandProcessor), nameof(CommandProcessor.ProcessQuery))] - internal static class SendingCommand + internal static class SendingValidRACommand { private static IEnumerable Transpiler(IEnumerable instructions, ILGenerator generator) { List newInstructions = ListPool.Pool.Get(instructions); - Label ret = generator.DefineLabel(); - newInstructions[newInstructions.Count - 1].labels.Add(ret); + Label setptroperresp = generator.DefineLabel(); - LocalBuilder ev = generator.DeclareLocal(typeof(SendingCommandEventArgs)); + Label ret = generator.DefineLabel(); + newInstructions[newInstructions.Count - 1].WithLabels(ret); + LocalBuilder ev = generator.DeclareLocal(typeof(SendingValidRACommandEventArgs)); int offset = 2; int index = newInstructions.FindIndex(instruction => instruction.Calls(Method(typeof(CommandHandler), nameof(CommandHandler.TryGetCommand)))) + offset; @@ -70,31 +71,36 @@ private static IEnumerable Transpiler(IEnumerable instruction.Calls(Method(typeof(string), nameof(string.ToUpperInvariant)))) + offset; @@ -106,13 +112,13 @@ private static IEnumerable Transpiler(IEnumerable Date: Sat, 9 Nov 2024 11:36:39 +0300 Subject: [PATCH 04/14] Update SendingValidRACommand.cs --- .../Patches/Events/Player/SendingValidRACommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs b/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs index 7870bb9f2..830eacfe4 100644 --- a/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs +++ b/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs @@ -98,7 +98,7 @@ private static IEnumerable Transpiler(IEnumerable Transpiler(IEnumerable.Pool.Return(newInstructions); } } -} \ No newline at end of file +} From 66481e645355eaf245f28eb2c57481d535ea54df Mon Sep 17 00:00:00 2001 From: Mariki <68015763+Mar1ki@users.noreply.github.com> Date: Sat, 9 Nov 2024 11:44:13 +0300 Subject: [PATCH 05/14] Update SendingValidRACommand.cs --- .../Patches/Events/Player/SendingValidRACommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs b/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs index 830eacfe4..10a41086c 100644 --- a/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs +++ b/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs @@ -97,7 +97,7 @@ private static IEnumerable Transpiler(IEnumerable Date: Sat, 9 Nov 2024 23:47:39 +0300 Subject: [PATCH 06/14] Update Player.cs --- EXILED/Exiled.Events/Handlers/Player.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXILED/Exiled.Events/Handlers/Player.cs b/EXILED/Exiled.Events/Handlers/Player.cs index 495928cc6..6b5fa43d3 100644 --- a/EXILED/Exiled.Events/Handlers/Player.cs +++ b/EXILED/Exiled.Events/Handlers/Player.cs @@ -541,7 +541,7 @@ public class Player public static Event ChangingNickname { get; set; } = new(); /// - /// Invoked before a sended command. + /// Invoked before a sends valid RA command. /// public static Event SendingValidRACommand { get; set; } = new(); @@ -1170,7 +1170,7 @@ public static void OnItemRemoved(ReferenceHub referenceHub, InventorySystem.Item public static void OnChangingNickname(ChangingNicknameEventArgs ev) => ChangingNickname.InvokeSafely(ev); /// - /// Called before a 's sended command. + /// Called before a send`s valid RA command. /// /// The instance. public static void OnSendingValidRACommand(SendingValidRACommandEventArgs ev) => SendingValidRACommand.InvokeSafely(ev); From 0f8015c1710a418767d60e566b8943c5c759e9e6 Mon Sep 17 00:00:00 2001 From: Mariki <68015763+Mar1ki@users.noreply.github.com> Date: Sun, 17 Nov 2024 19:11:45 +0300 Subject: [PATCH 07/14] Update SendingValidRACommandEventArgs.cs oh i forgor to set it to true --- .../EventArgs/Player/SendingValidRACommandEventArgs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs b/EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs index e4757b3fd..3b8167c06 100644 --- a/EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs +++ b/EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs @@ -45,7 +45,7 @@ public SendingValidRACommandEventArgs(Player player, ICommand command, string qu /// /// Gets or sets a value indicating whether the player can send a command. /// - public bool IsAllowed { get; set; } + public bool IsAllowed { get; set; } = true; /// /// Gets or sets the response of the command. If this value is null, the response will stay unchanged. From 5e91382f84b075d470e2507fc9eaa40e4e1919d0 Mon Sep 17 00:00:00 2001 From: Misaka-ZeroTwo <45165615+Misaka-ZeroTwo@users.noreply.github.com> Date: Sat, 23 Nov 2024 02:19:03 -0500 Subject: [PATCH 08/14] Update docs --- EXILED/Exiled.Events/Handlers/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.Events/Handlers/Player.cs b/EXILED/Exiled.Events/Handlers/Player.cs index a539b959d..5fd60f181 100644 --- a/EXILED/Exiled.Events/Handlers/Player.cs +++ b/EXILED/Exiled.Events/Handlers/Player.cs @@ -1181,7 +1181,7 @@ public static void OnItemRemoved(ReferenceHub referenceHub, InventorySystem.Item public static void OnChangingNickname(ChangingNicknameEventArgs ev) => ChangingNickname.InvokeSafely(ev); /// - /// Called before a send`s valid RA command. + /// Called before a sends valid RA command. /// /// The instance. public static void OnSendingValidRACommand(SendingValidRACommandEventArgs ev) => SendingValidRACommand.InvokeSafely(ev); From a1f3748edf0bbd305e375dfb688088742189c03d Mon Sep 17 00:00:00 2001 From: Mariki <68015763+Mar1ki@users.noreply.github.com> Date: Sat, 23 Nov 2024 10:27:46 +0300 Subject: [PATCH 09/14] Update Player.cs --- EXILED/Exiled.Events/Handlers/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.Events/Handlers/Player.cs b/EXILED/Exiled.Events/Handlers/Player.cs index 5fd60f181..5e5601772 100644 --- a/EXILED/Exiled.Events/Handlers/Player.cs +++ b/EXILED/Exiled.Events/Handlers/Player.cs @@ -546,7 +546,7 @@ public class Player public static Event ChangingNickname { get; set; } = new(); /// - /// Invoked before a sends valid RA command. + /// Invoked before a send's valid RA command. /// public static Event SendingValidRACommand { get; set; } = new(); From 5a7d7f0e897ae7f274c3bdc102b1780ff9766b51 Mon Sep 17 00:00:00 2001 From: Mariki <68015763+Mar1ki@users.noreply.github.com> Date: Sat, 23 Nov 2024 10:29:58 +0300 Subject: [PATCH 10/14] Update Player.cs --- EXILED/Exiled.Events/Handlers/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.Events/Handlers/Player.cs b/EXILED/Exiled.Events/Handlers/Player.cs index 5e5601772..5fd60f181 100644 --- a/EXILED/Exiled.Events/Handlers/Player.cs +++ b/EXILED/Exiled.Events/Handlers/Player.cs @@ -546,7 +546,7 @@ public class Player public static Event ChangingNickname { get; set; } = new(); /// - /// Invoked before a send's valid RA command. + /// Invoked before a sends valid RA command. /// public static Event SendingValidRACommand { get; set; } = new(); From 157de05bc189913883e365f8cc7fc0661c8cf776 Mon Sep 17 00:00:00 2001 From: Mariki <68015763+Mar1ki@users.noreply.github.com> Date: Sat, 23 Nov 2024 10:35:33 +0300 Subject: [PATCH 11/14] Trying to change header from my mobile phone --- EXILED/Exiled.Events/Handlers/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.Events/Handlers/Player.cs b/EXILED/Exiled.Events/Handlers/Player.cs index 5fd60f181..97650a9e4 100644 --- a/EXILED/Exiled.Events/Handlers/Player.cs +++ b/EXILED/Exiled.Events/Handlers/Player.cs @@ -1,5 +1,5 @@ // ----------------------------------------------------------------------- -// +// // Copyright (c) Exiled Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. // From 31af95140614c627265aa0dc86ecb3cade996438 Mon Sep 17 00:00:00 2001 From: Mariki <68015763+Mar1ki@users.noreply.github.com> Date: Sat, 23 Nov 2024 10:36:31 +0300 Subject: [PATCH 12/14] Update SendingValidRACommandEventArgs.cs --- .../EventArgs/Player/SendingValidRACommandEventArgs.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs b/EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs index 3b8167c06..7f30e3dcc 100644 --- a/EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs +++ b/EXILED/Exiled.Events/EventArgs/Player/SendingValidRACommandEventArgs.cs @@ -1,6 +1,6 @@ // ----------------------------------------------------------------------- -// -// Copyright (c) Exiled Team. All rights reserved. +// +// Copyright (c) ExMod Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. // // ----------------------------------------------------------------------- From 7f4485541b3798a76d582eabe93bbf7ae9c8dfd4 Mon Sep 17 00:00:00 2001 From: Mariki <68015763+Mar1ki@users.noreply.github.com> Date: Sat, 23 Nov 2024 10:37:22 +0300 Subject: [PATCH 13/14] Update SendingValidRACommand.cs --- .../Patches/Events/Player/SendingValidRACommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs b/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs index 10a41086c..5a3ee7de1 100644 --- a/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs +++ b/EXILED/Exiled.Events/Patches/Events/Player/SendingValidRACommand.cs @@ -1,6 +1,6 @@ // ----------------------------------------------------------------------- -// -// Copyright (c) Exiled Team. All rights reserved. +// +// Copyright (c) ExMod Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. // // ----------------------------------------------------------------------- From a4530457ad0c8e75d73deb57a5eef88bdea4586d Mon Sep 17 00:00:00 2001 From: Mariki <68015763+Mar1ki@users.noreply.github.com> Date: Sat, 23 Nov 2024 10:37:57 +0300 Subject: [PATCH 14/14] Update Player.cs --- EXILED/Exiled.Events/Handlers/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.Events/Handlers/Player.cs b/EXILED/Exiled.Events/Handlers/Player.cs index 97650a9e4..343d43ba2 100644 --- a/EXILED/Exiled.Events/Handlers/Player.cs +++ b/EXILED/Exiled.Events/Handlers/Player.cs @@ -1,6 +1,6 @@ // ----------------------------------------------------------------------- // -// Copyright (c) Exiled Team. All rights reserved. +// Copyright (c) ExMod Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. // // -----------------------------------------------------------------------