public static void greetPlayer(int plr)
{
if (Main.motd == "")
NetMessage.SendData(25, plr, -1, Lang.mp[18] + " " + Main.worldName + "!", (int)byte.MaxValue, (float)byte.MaxValue, 240f, 20f, 0, 0, 0);
else
NetMessage.SendData(25, plr, -1, Main.motd, (int)byte.MaxValue, (float)byte.MaxValue, 240f, 20f, 0, 0, 0);
string str = "";
for (int index = 0; index < (int)byte.MaxValue; ++index)
{
if (Main.player[index].active)
str = !(str == "") ? str + ", " + Main.player[index].name : str + Main.player[index].name;
}
NetMessage.SendData(25, plr, -1, "Current players: " + str + ".", (int)byte.MaxValue, (float)byte.MaxValue, 240f, 20f, 0, 0, 0);
}