playerapi-2.1.0.jar
Curse Maven Snippet
What's new
[2.1.0] - 2026-08-29
Added
HypixelInfo—isOnHypixel()detects a Hypixel connection from the address the user actually connected to (ServerData.ipviaWorldInfo.getServerAddress()), matched as ahypixel.nethost suffix (coversmc./alpha./ any*.hypixel.net, rejects lookalikes). That field is the client's own connection target, not Hypixel's internal proxies, so it's reliable.matchesHypixel(addr)exposed for arbitrary strings. PlusisConnectedToServer()andisOnOtherServer()(connected to a different multiplayer server) — so UI can hide Hypixel-only features on other servers while still showing them at the main menu / singleplayer. (Hypixel-level, not SkyBlock — mods still gate SkyBlock behaviour on in-game signals.)- Config: conditional categories.
@ConfigCategory(visibleWhen = "methodName")— the config screen hides that whole category when the named no-argbooleanmethod on the config object returns false (evaluated each time the screen opens). Failures are contained (treated as visible).@ConfigListnow supports the samevisibleWhenso a dynamic list category can be conditionally hidden too. - Dev "Force Hypixel Detection" toggle (PlayerAPI config → Developer). Makes
isOnHypixel()return true everywhere, so every Hypixel-gated mod runs (and shows its Hypixel-only config) on a private / local server for controlled testing. Applied globally viaHypixelInfo.setForceHypixel. - Dev "Dev Commands" toggle (PlayerAPI config → Developer). PlayerAPI's
/papi…self-test / diagnostic commands (walk, path, follow, entities, events, stats, hypixel, area, hud, seq, toast, dialog, plus/playerapi hudeditor|configdemo) are now off for normal users and only registered while this toggle is on — they're library development aids, not features. Takes effect after rejoining a world (the command tree rebuilds on connect). The/playerapi dismissupdatelink on update notices is unaffected. /papiarea(dev) — prints exactly what PlayerAPI reads as the current area: the tab-list "Area:" line and the lower-cased text ESP's area whitelist/blacklist match against, plus the on-Hypixel state.Commands.register(BooleanSupplier enabled, …)— gated command registration; the command exists only while the supplier returns true at command-tree build time (the pattern used for the dev commands above).- Debug data collectors (
com.playerapi.debug) — dev tools every PlayerAPI mod now inherits, gated on the Dev Commands toggle./papidump <labels|item|table|block|entity|me>gathers in-game data, copies it to the clipboard and logs the full dump; the text tools codepoint-escape everything so custom pack glyphs (e.g. Hypixel PUA icons) show as\uXXXX. Plus two unbound debug keybinds — Dump Item (works inside a container GUI, on the hovered slot) and Dump Labels.itemreports id / name / lore / custom NBT / full component patch;tablereads the sidebar + tab via PlayerAPI's ownScoreboardInfo/TabListInfo;block/entity/medump what you're looking at and your own state. While Dev Commands is on, chat lines also become click-to-copy (copies the line's codepoint-escaped text; existing link clicks are preserved). (Supersedes the standalone DebugKit mod.) TabListInfo.getHeader()/getFooter()now return the real tab-list header/footer text (previously a stub) via aPlayerTabOverlayaccessor.
Config library
- Formatted text. Option names, descriptions and
@InfoTextrows now support a lightweight markup:&/§colour & format codes (0-9a-fcolour,l/o/n/m/kbold/italic/underline/strike/obfuscated,rreset),[#RRGGBB]for arbitrary hex colours beyond the 16 legacy ones, and[/]to reset. Rendering is native (colour incl. hex, bold/italic/underline/strike). Field values are never parsed as markup. - Wrapping descriptions. A long description now word-wraps onto as many lines as it needs and the row grows to fit, instead of running off the edge. Rows are variable-height throughout the screen.
- Text sections.
@InfoText(a read-only row with no widget — just a name/description) now wraps and formats like everything else, so it works cleanly for notes, warnings, and section blurbs. - Visual colour picker. Clicking a
@ColorPickerswatch opens a saturation/value square + hue bar + live hex field + preview, writing the colour back live. Typing a hex code into the row still works too. - Full text-field editing.
@TextFieldboxes gained a real caret: click / drag to place or select, arrow keys (Ctrl = by word), Home/End, Backspace/Delete (Ctrl = word), and clipboard Ctrl+A/C/X/V. Long values scroll horizontally to keep the caret in view.
This mod has no additional files
