var player = Player.Find("username"); if (player != null) { Console.WriteLine("Found player: " + player.Username); }
var players = Player.FindAll(p => p.Dimension == 1); foreach (var player in players) { Console.WriteLine(player.Username + " is in the Nether."); }In both examples, you can see that we are using the Player class to search for and find players. It is likely that this class is contained within the MCForge package library.