Пример #1
0
        internal void PlayerJoin(PlayerJoinEvent ev)
        {
            if (!EnableBroadcasting)
            {
                return;
            }

            Extenstions.Broadcast(ev.Player, (uint)JTime, JMessage.Replace("%player%", ev.Player.nicknameSync.MyNick));
        }
Пример #2
0
        public IEnumerator <float> CustomBroadcast()
        {
            while (true)
            {
                yield return(Timing.WaitForSeconds(BSeconds));

                foreach (ReferenceHub hub in Plugin.GetHubs())
                {
                    Extenstions.Broadcast(hub, (uint)BTime, BMessage);
                }
            }
        }
Пример #3
0
 internal void PlayerJoin(PlayerJoinEvent ev) => Extenstions.Broadcast(ev.Player, (uint)JTime, JMessage.Replace("%player%", ev.Player.nicknameSync.MyNick));