🔍Refining Further
Area: Private Island
A common practice is for larger servers to provide extra data in the player list and right-hand 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