val stats =WynnStats()
val player = stats.getPlayer("Keldorn") ?:returnprintln("Player not found!")
val data = player.get()
val classes = player.classes
val firstClass = classes[0]
// do stuff here
Java
WynnStatswynnStats = newWynnStats();
Playerplayer = wynnStats.getPlayer("GithubCopilot");
PlayerDataplayerData = player.get();
PlayerClassesplayerClass = playerData.getClasses().get(0);
// do stuff here