internal void PlayerJoin(PlayerJoinEvent ev) { if (!EnableBroadcasting) { return; } Extenstions.Broadcast(ev.Player, (uint)JTime, JMessage.Replace("%player%", ev.Player.nicknameSync.MyNick)); }
public IEnumerator <float> CustomBroadcast() { while (true) { yield return(Timing.WaitForSeconds(BSeconds)); foreach (ReferenceHub hub in Plugin.GetHubs()) { Extenstions.Broadcast(hub, (uint)BTime, BMessage); } } }
internal void PlayerJoin(PlayerJoinEvent ev) => Extenstions.Broadcast(ev.Player, (uint)JTime, JMessage.Replace("%player%", ev.Player.nicknameSync.MyNick));