/// <summary> /// Triggered when a new player joins the game /// </summary> /// <param name="uuid">UUID of the player</param> /// <param name="name">Name of the player</param> public void OnPlayerJoin(Guid uuid, string name) { //Ignore placeholders eg 0000tab# from TabListPlus if (!ChatBot.IsValidName(name)) { return; } if (Telegram.data.getTimestamp() > vars.logInTimestamp) { Telegram.data.loginData(name, "last_online", Telegram.data.getTimestamp()); OnLogin.Protect(name); } lock (onlinePlayers) { onlinePlayers[uuid] = name; } }