TSPlayer.All.SendData(PacketTypes.ChatText, playerIndex, -1, message, r, g, b);
TSPlayer player = TShock.Players[index]; player.Teleport(x, y);
TSPlayer plr = TShock.Players[playerIndex]; plr.SendInfoMessage("Welcome to the server!");This code sends a custom message to the player with the given index. It uses the TShock.Players array to get the TSPlayer object for the player, and calls the SendInfoMessage method to send the message. Package Library: TShockAPI In all of these examples, the TShockAPI library is used to access the TSPlayer class and interact with connected players on the server.