Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion runelite-plugin.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
18 changes: 18 additions & 0 deletions src/main/java/com/afkstatstracker/AfkStatsTrackerPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down
Loading