Skip to content

add clan-rank-tracker - #21258

Open
Jiimbones wants to merge 1 commit into
runelite:masterfrom
Jiimbones:clan-rank-tracker
Open

Jiimbones wants to merge 1 commit into
runelite:masterfrom
Jiimbones:clan-rank-tracker

Conversation

@Jiimbones

Copy link
Copy Markdown
Contributor

Clan Rank Tracker keeps the history the OSRS clan system doesn't: promotions, demotions, joins, leaves and renames, and who is due a rank review.

The side panel has three tabs:

  • Due: members who have spent their rank's review period (set per rank in days, months or years), plus anyone demoted since their last review. Possible renames wait at the top for the user to confirm or reject.
  • Members: the clan as a rank ladder. Members who are due are highlighted.
  • History: a filterable timeline of every change, which can be exported to CSV.

Notes for review:

  • Reads the clan member list the client already receives (ClanSettings) on a throttled GameTick check. It never changes ranks, sends menu actions or injects input. It only shows information.
  • Renames are matched locally, by clan join date and the friends list's previous names.
  • One optional network feature: "Confirm renames with Wise Old Man". It's off by default and uses the standard third-party warning text. When it's on, the only thing sent is the new name of a possible rename, to api.wiseoldman.net/v2/players/{name}/names, through the injected OkHttpClient. Requests are async, rate-limited and cached. There are no other endpoints and no telemetry.
  • History is stored locally as one JSON file per clan, through getPluginDirectory() (internalName = "clan-rank-tracker"), with atomic writes. Gson is the injected instance.
  • No third-party dependencies, no reflection, and no blocking IO on the client thread.
  • 42 unit tests, run green from a clean clone of the submitted commit.

🤖 Generated with Claude Code

@runelite-github-app

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant