Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
About
Last Seen is a server-side mod that keeps track of all players that have joined a world. The mod records each players' total played time, and includes AFK detection. The mod also includes commands that allow players to see tracked statistics.
Features
Last Seen & Status
Last Seen's primary function is to keep track of the last time an offline player was connected to the server. Last Seen also shows how long each online player has been connected for. Players can check this using the /lastseen command:
Total Played Time
You can use the /lastseen stats [<player>] command to check the status and total played time of specific players:
The /lastseen top command shows a leaderboard of players ordered by the most time spent actively online.
AFK Detection
By default, Last Seen also includes AFK detection, and will mark players as "Away" after no input is detected for 5 minutes.
Since the mod is fully server-side, Last Seen uses Serverbound packets from the client to determine if a player is "Away".
Players in the "Away" state do not contribute to their leaderboard time.
Last Seen has tab list integration, and will group "Away" players at the bottom of the list and visually distinguish them from "Active" players:
Configuration
All features of Last Seen can be enabled/disabled using the TOML configuration file. Some features such as status announcements are disabled by default.
See the guide for an overview of common configuration scenarios. For a complete list of available options, refer to the reference.
The appearance of Last Seen is also fully configurable courtesy of Patbox's TextPlaceholderAPI. For instance, you can configure the tab list to show the time each player has spent in their given state, or change the colors of a status everywhere.
Licensing
Last Seen is distributed under the permissive Apache-2.0 License.
Last Seen includes several libraries within its distribution in compliance with the respective mods' licenses. Minecraft mod dependencies are not included, and should be installed separately with the help of a mod manager (i.e. Modrinth App, Prism Launcher). I'm new to mod-making and this setup felt the best to me at the time, so this may change in the future.


