🔍Refining Further

Area: Private Island

A common practice is for larger servers to provide extra data in the player list and right-hand scoreboard:

Hypixel Skyblock, showing your area in the player list
Again skyblock, showing your sublocation, money and time in the scoreboard

The GPS module provides helpers for easily getting and searching through both of these lists, through ScoreboardSnapshot.take() and PlayerListSnapshot.take():

static boolean isPlayerOnSkyblock() {
    return ScoreboardSnapshot.take().map(snapshot -> 
        snapshot.title().getString().startsWith("SKYBLOCK")
    ).orElse(false);
}

static Optional<String> getSkyblockArea() {
    return PlayerListSnapshot.take().nameWithPrefixStripped("Area: ");
}

Last updated