JackFredLib
Home
  • 🏑Home
  • 🐘Setup with Gradle
  • πŸ“…Supported Versions
  • JackFredLib: Base
    • 🧱Overview
    • β˜‘οΈCodecs
  • JackFredLib: Colour
    • 🎨Overview
    • 🟒Colours
    • 🌈Gradients
  • JackFredLib: Extra Command Source Data
    • ⌨️Overview
  • JackFredLib: GPS
    • πŸ›°οΈOverview
    • πŸ—ΊοΈUsing Coordinates
    • πŸ”Refining Further
  • JackFredLib: Lying
    • πŸ€₯Overview
  • JackFredLIb: Toasts
    • 🍞Overview
  • JackFredLib: Config
    • βš™οΈOverview
Powered by GitBook
On this page
  1. JackFredLib: GPS

Refining Further

Area: Private Island

PreviousUsing CoordinatesNextOverview

Last updated 1 year ago

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: ");
}

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