You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
TIMVtimvStats = newTIMV("ItsNiklass"); // Instantiate the classSystem.out.println(timvStats.getPoints()); // Print the player's karma
Kotlin:
val timvStats =TIMV("ItsNiklass") // Instantiate the classprintln(timvStats.points) // Print the player's karma