internal void InvokeConsoleCommandEvent(Player player, string command) { var ev = new ConsoleCommandEventArgs { Command = command, Player = player }; ConsoleCommandEvent?.Invoke(ev); }
internal static void InvokeConsoleCommandEvent(Player player, string command, out bool allow) { allow = true; if (ConsoleCommandEvent == null) { return; } var ev = new ConsoleCommandEvent { Command = command, Player = player }; ConsoleCommandEvent.Invoke(ev); }