Skip to content

GameStats objects

RoccoDev edited this page May 25, 2018 · 1 revision

The GameStats subclasses are used to fetch a profile of a player for a certain game. All those subclasses are stored in the tk.roccodev.hiveapi.player.stats package.

Most of them share some common getters; some are subclasses of PVPStats, a GameStats child with getters for kills and deaths.

Their usage is quite simple, just instantiate one of them with the player's UUID or name as a parameter.

Java:

TIMV timvStats = new TIMV("ItsNiklass"); // Instantiate the class
System.out.println(timvStats.getPoints()); // Print the player's karma

Kotlin:

val timvStats = TIMV("ItsNiklass") // Instantiate the class
println(timvStats.points) // Print the player's karma

Clone this wiki locally