From 1adeb2319161c5296e797c148cbf78a901aeab08 Mon Sep 17 00:00:00 2001 From: Reasel Date: Tue, 7 Jul 2026 10:23:03 -0700 Subject: [PATCH] Add community stats site link to panel and docs --- README.md | 4 ++++ runelite-plugin.properties | 2 +- .../afkstatstracker/AfkStatsTrackerPanel.java | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 47616c3..fbd7520 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ Use it to compare AFK activities and training methods, the same way you track DP Session history shows your most recent sessions first. Click a session name to rename it. Sessions can be copied to clipboard or deleted (with confirmation). The Start/Stop buttons and live stats stay pinned in place; only the history list scrolls when it grows long. +## Community Stats Site + +Share your sessions and compare against everyone else's at [afk.statstracker.workers.dev](https://afk.statstracker.workers.dev/). Copy a session as JSON from the panel (copy icon → Copy JSON), paste it on the Submit page, and browse charts of consistency, click interval, and distance across activities. The "View community stats" link at the bottom of the plugin panel opens the site. + ## Wiki Guide See the [AFK Activity Tracker Guide](https://oldschool.runescape.wiki/w/Guide:AFK_Activity_Tracker) on the Old School RuneScape Wiki for a detailed breakdown of the tracked metrics, interactive scatter plots comparing activities, and aggregated averages across activity groups like Bankstanding, Fishing, and Salvaging. diff --git a/runelite-plugin.properties b/runelite-plugin.properties index cb3b96d..0f18434 100644 --- a/runelite-plugin.properties +++ b/runelite-plugin.properties @@ -1,6 +1,6 @@ displayName=AFK Stats Tracker author=Reasel -description=Tracks mouse clicks during AFK sessions and computes consistency, average click interval, and average click distance +description=Tracks mouse clicks during AFK sessions and computes consistency, average click interval, and average click distance. Compare sessions with others at afk.statstracker.workers.dev tags=afk,stats,tracker,clicks plugins=com.afkstatstracker.AfkStatsTrackerPlugin version=1.1.1 diff --git a/src/main/java/com/afkstatstracker/AfkStatsTrackerPanel.java b/src/main/java/com/afkstatstracker/AfkStatsTrackerPanel.java index 2d33e77..a7e83e0 100644 --- a/src/main/java/com/afkstatstracker/AfkStatsTrackerPanel.java +++ b/src/main/java/com/afkstatstracker/AfkStatsTrackerPanel.java @@ -39,10 +39,13 @@ import javax.swing.Timer; import net.runelite.client.ui.ColorScheme; import net.runelite.client.util.ImageUtil; +import net.runelite.client.util.LinkBrowser; import net.runelite.client.ui.PluginPanel; public class AfkStatsTrackerPanel extends PluginPanel { + private static final String SITE_URL = "https://afk.statstracker.workers.dev/"; + private final AfkStatsTrackerPlugin plugin; private final SessionHistoryManager sessionHistoryManager; private final Gson gson; @@ -155,6 +158,21 @@ public AfkStatsTrackerPanel(AfkStatsTrackerPlugin plugin, SessionHistoryManager add(topPanel, BorderLayout.NORTH); add(historyScrollPane, BorderLayout.CENTER); + + JLabel siteLink = new JLabel("View community stats ↗"); + siteLink.setForeground(ColorScheme.BRAND_ORANGE); + siteLink.setBorder(BorderFactory.createEmptyBorder(6, 5, 4, 5)); + siteLink.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); + siteLink.setToolTipText("Compare your sessions with others at " + SITE_URL); + siteLink.addMouseListener(new MouseAdapter() + { + @Override + public void mouseClicked(MouseEvent e) + { + LinkBrowser.browse(SITE_URL); + } + }); + add(siteLink, BorderLayout.SOUTH); } private JPanel createStatCard(String title, String tooltip)