internal void InvokePlayerJoinEvent(Player player, ref string nickname) { var ev = new PlayerJoinEventArgs { Player = player, Nickname = nickname }; PlayerJoinEvent?.Invoke(ev); nickname = ev.Nickname; }
internal static void InvokePlayerJoinEvent(Player player, ref string nick) { if (PlayerJoinEvent == null) { return; } var ev = new PlayerJoinEvent { Player = player, Nick = nick }; PlayerJoinEvent.Invoke(ev); nick = ev.Nick; }
public static void InvokePlayerJoinEvent(PlayerJoinEventArgs e) { PlayerJoinEvent?.Invoke(null, e); }