HomeJavaModsPublicPlaytime
PublicPlaytime
[​IMG]
PublicPlaytime 1.2

PublicPlaytime is a plugin which makes it easy to see playtimes of every player who has ever been on your server. PublicPlaytime uses the standard Statistic from Bukkit* to query the playtime of online players, and a database which holds the time for all offline players. The time played is of course how long a certain player has been logged in on your server. It should be the same as the statistic in vanilla Minecraft that people can access via the statistics menu. This also means, that when you switch the main world of your server, the playtime will be reset. To prevent this from happening, use the backup feature that is explained further below.

*Any forks of Bukkit will suffice (i.e. Spigot, Paper etc.)

Commands
PublicPlaytime has several functions. All commands can be seen in-game via /playtime help, aliases can also be found here.
Output when executing: / playtime get LifelessNerd standard
[​IMG]

Output when executing: /playtime ranking standard 10
[​IMG]

Note: This command has options in the config, for whether to refresh the scoreboard and at what interval. See 'Files'.

Output when executing: /playtime scoreboard show minutes 10
[​IMG]

Files
Upon first starting the plugin, 2 YAML files will be created, a config and a database. The config will hold options for the plugin for you to edit. There are 2 settings that can be changed, whether to allow scoreboards to refresh, and if so, at what interval they should do so. Anything below 20 ticks (1 second) will not have an effect, since the statistics themselves are done with seconds.

The database is not to be edited. It stores playtimes as ticks per player. You can add players, although this is already done by the plugin when people first join, and any values will get overwritten when a player quits the server.

A backup file is present if a backup is made with /playtime backup. You may edit this file (although I dicourage you from doing it) but notice that when you do this, to load the backup file, first reload/restart the server for the plugin to see the manual changes you've made.

Upcoming feature(s) (hopefully)
Known issues and support/help
See Github Issues.

If there are any problems create a message below, add them on GitHub, here, or DM me on Twitter. You may also join the Discord Support server.

Thanks!

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

PublicPlaytime is a free Minecraft Java mod. Compatible with Minecraft 1.19, 1.20. Downloaded 755 times (via Spigot). Download it and open it directly in the game.

Explore more