public static void InvokePlayerBanned(BanDetails banDetails, BanType banType) { if (PlayerBannedEvent == null) { return; } PlayerBannedEvent ev = new PlayerBannedEvent() { Details = banDetails, Type = banType }; PlayerBannedEvent.Invoke(ev); }
public static void InvokePlayerBanned(BanDetails details, BanType type) { PlayerBanned playerBanned = PlayerBannedEvent; if (playerBanned == null) { return; } PlayerBannedEvent ev = new PlayerBannedEvent() { Details = details, Type = type }; PlayerBannedEvent?.Invoke(ev); }