WynncraftAPIWrapper

  • Simple wrapper to get Wynncraft Stats of a player or a guild and more in Java!

Installation

// Add this to your build.gradle
repositories {
			maven { url 'https://jitpack.io' }
}

dependencies {
	        implementation 'com.github.byBackfish:WynncraftAPiWrapper:Tag'
}

Usage

Kotlin

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

Java

WynnStats wynnStats = new WynnStats();
Player player = wynnStats.getPlayer("GithubCopilot");
PlayerData playerData = player.get();
PlayerClasses playerClass = playerData.getClasses().get(0);
// do stuff here