ModsJava
PlayerTime (Offline Player / MySQL / BungeeCord / PlaceholderAPI Supported)
PlayerTime is a simple little plugin I created that allows you to check how long a player has been on the server for. I know this may seem like "every other player time plugin" but I have yet to see one that will work with offline players, simply because you can't. That's why I decided to do my own take on this. I wanted to make that a possibility.
- Supports Offline Players
- Supports MySQL
- Supports BungeeCord (via connecting to same MySQL DB on all servers)
- PlaceholderAPI
- Top 10 GUI
The way this plugin works is very simple. Once a player logs in, the plugin will see that and watch for when that player logs in. When the player logs out, the time online will be saved to a file so that you can still check that player even when they are offline.
Code (YAML):
# PlayerTime ${project.version}
# Do not change this
config-version : 2
plugin-prefix : "[&dPlayer&eTime&f]"
# Supports YML or MySQL
database:
type : YML
# Uncomment when using MySQL
# host: "localhost"
# port: 3306
# username: "root"
# password: "password"
# database: "playertime"
# pool-size: 10
format : "&a{name} has been playing for {days} days, {hours} hours, {minutes} minutes, {seconds} seconds"
# This will either be gui or text, if it's neither, this won't work.
leaderboard-type : "gui"
# The "time-format" option also applies to the text based version of the leaderboard.
gui:
title : "Top Ten PlayerTimes"
time-format : "{days} days, {hours} hours, {minutes} minutes, {seconds} seconds"
item:
name : "{player}'s time"
material : "PAPER"
lore :
- "Ranked #{slot}"
- "Time Played : {format } "
text-top:
title: "&7 ------------------------ "
footer: "&7 ------------------------ "
content: "&7 {place }, &a {name } &f {time } "
messages:
incorrect-usage: "Too many arguments. Use /ptcheck or /ptcheck <name> "
never-played-before: "Data for this player was not found. Never played? "
no-playtime-data: "There was no saved playtime data for this player "
config-reload: "PlayerTime config has been reloaded! "
# Do not change this
config-version : 2
plugin-prefix : "[&dPlayer&eTime&f]"
# Supports YML or MySQL
database:
type : YML
# Uncomment when using MySQL
# host: "localhost"
# port: 3306
# username: "root"
# password: "password"
# database: "playertime"
# pool-size: 10
format : "&a{name} has been playing for {days} days, {hours} hours, {minutes} minutes, {seconds} seconds"
# This will either be gui or text, if it's neither, this won't work.
leaderboard-type : "gui"
# The "time-format" option also applies to the text based version of the leaderboard.
gui:
title : "Top Ten PlayerTimes"
time-format : "{days} days, {hours} hours, {minutes} minutes, {seconds} seconds"
item:
name : "{player}'s time"
material : "PAPER"
lore :
- "Ranked #{slot}"
- "Time Played : {format } "
text-top:
title: "&7 ------------------------ "
footer: "&7 ------------------------ "
content: "&7 {place }, &a {name } &f {time } "
messages:
incorrect-usage: "Too many arguments. Use /ptcheck or /ptcheck <name> "
never-played-before: "Data for this player was not found. Never played? "
no-playtime-data: "There was no saved playtime data for this player "
config-reload: "PlayerTime config has been reloaded! "
PlaceholderAPI Placeholders:
%playertime_time%
%playertime_time_seconds%
%playertime_time_minutes%
%playertime_time_hours%
- /ptcheck
- /pttop
- /ptreload
- playertime.check (check yourself)
- playertime.others (check others)
- playertime.top (opens the GUI)
- playertime.reload (reloads the config)
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.9, 1.10, 1.11
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
PlayerTime (Offline Player / MySQL / BungeeCord / PlaceholderAPI Supported) is a free Minecraft Java mod. Compatible with Minecraft 1.9, 1.10, 1.11, 1.12 and newer. Downloaded 13,695 times (via Spigot). Download it and open it directly in the game.