Skip to content

Statistics

Tebrox edited this page Sep 20, 2026 · 1 revision

Statistics

AFK Area stores persistent statistics for completed AFK area sessions.

Normal AFK time outside an AFK area is not counted as an AFK area session.

Stored statistics

For each player:

  • Completed session count
  • Total AFK area time
  • Last session duration
  • Longest session duration
  • Last AFK area ID
  • Last session end time

Statistics are stored by UUID.

When a session is completed

A session is completed when the player:

  • Leaves the AFK area
  • Disconnects while inside the AFK area

The completed duration is then added to persistent statistics.

Viewing statistics

/afkarea stats <player>

Permission:

afkarea.admin.stats

Known offline players can also be inspected.

The output includes:

Sessions
Total time
Longest session
Last session
Last area
Last session ended

Runtime status

For live state instead of persistent history:

/afkarea status [player]

Permission:

afkarea.admin.status

Runtime status includes:

  • State
  • Current area
  • Entry source
  • Idle duration
  • Reward-session duration
  • Next reward
  • IP reward-slot status

Without a player argument, a player sender inspects themselves.

PlaceholderAPI

Persistent statistics are available through:

%afkarea_stats_session_count%
%afkarea_stats_total_seconds%
%afkarea_stats_last_session_seconds%
%afkarea_stats_longest_session_seconds%
%afkarea_stats_last_area_id%
%afkarea_stats_last_session_end_epoch_millis%

Current session duration:

%afkarea_session_seconds%

See PlaceholderAPI & TAB.

Storage

Statistics use the same configured VertexCore database backend as AFK areas and households.

See Database & Storage.

Related pages

Clone this wiki locally