- Simple wrapper to get Wynncraft Stats of a player or a guild and more in Java!
// Add this to your build.gradle
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.byBackfish:WynncraftAPiWrapper:Tag'
}
- See more on Jitpack
val stats = WynnStats()
val player = stats.getPlayer("Keldorn") ?: return println("Player not found!")
val data = player.get()
val classes = player.classes
val firstClass = classes[0]
// do stuff here
WynnStats wynnStats = new WynnStats();
Player player = wynnStats.getPlayer("GithubCopilot");
PlayerData playerData = player.get();
PlayerClasses playerClass = playerData.getClasses().get(0);
// do stuff here