HomeJavaModsPlayerTime (Offline Player / MySQL / BungeeCord / PlaceholderAPI Supported)
PlayerTime (Offline Player / MySQL / BungeeCord / PlaceholderAPI Supported)
ModsJava

PlayerTime (Offline Player / MySQL / BungeeCord / PlaceholderAPI Supported)

⬇ Download on Spigot
[​IMG]
[​IMG]

[​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG]

[​IMG]
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.​

[​IMG]
[​IMG]
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.​

[​IMG]
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! "



PlaceholderAPI Placeholders:

%playertime_time%
%playertime_time_seconds%
%playertime_time_minutes%
%playertime_time_hours%


[​IMG]
[​IMG]

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.

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.

Explore more