public void run() {
    Collection<ProxiedPlayer> players = ProxyServer.getInstance().getPlayers();
    if (players.isEmpty()) {
      return;
    }

    int fadeIn = TitleAnnouncements.titleannouncements.getInt("Announcements.Global.FadeIn", 30);
    int stay = TitleAnnouncements.titleannouncements.getInt("Announcements.Global.Stay", 60);
    int fadeOut = TitleAnnouncements.titleannouncements.getInt("Announcements.Global.FadeOut", 30);

    for (ProxiedPlayer player : players) {
      for (String line : list.get(count).split("\n")) {
        if (line.contains("%n")) {
          String[] titles = line.split("%n");
          String stitle = titles[0];
          String ssubtitle = titles[1];

          BaseComponent[] title =
              new ComponentBuilder(stitle.replace("%p%", player.getName())).create();
          BaseComponent[] subtitle =
              new ComponentBuilder(ssubtitle.replace("%p%", player.getName())).create();

          TitleUtil.sendFullTitle(player, fadeIn, stay, fadeOut, subtitle, title);
        } else {
          BaseComponent[] title =
              new ComponentBuilder(line.replace("%p%", player.getName())).create();
          BaseComponent[] subtitle = new ComponentBuilder("").create();

          TitleUtil.sendFullTitle(player, fadeIn, stay, fadeOut, subtitle, title);
        }
      }
    }
    count++;
    if ((count + 1) > list.size()) {
      count = 0;
    }
  }