Example #1
0
        public static void InvokePlayerBanned(BanDetails banDetails, BanType banType)
        {
            if (PlayerBannedEvent == null)
            {
                return;
            }

            PlayerBannedEvent ev = new PlayerBannedEvent()
            {
                Details = banDetails,
                Type    = banType
            };

            PlayerBannedEvent.Invoke(ev);
        }
Example #2
0
        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);
        }