Search in sources :

Example 1 with HypixelApiPlayer

use of club.sk1er.website.api.requests.HypixelApiPlayer in project Hyperium by HyperiumClient.

the class StatsHandler method initStatsViewer.

public void initStatsViewer(String player) {
    Multithreading.runAsync(() -> {
        GeneralChatHandler.instance().sendMessage("Loading stats for: " + player);
        try {
            HypixelApiPlayer apiPlayer = HypixelAPI.INSTANCE.getPlayer(player).get();
            new PlayerStatsGui(apiPlayer).show();
        } catch (Exception e) {
            e.printStackTrace();
        }
    });
}
Also used : HypixelApiPlayer(club.sk1er.website.api.requests.HypixelApiPlayer)

Aggregations

HypixelApiPlayer (club.sk1er.website.api.requests.HypixelApiPlayer)1