Online time of a player in Minecraft about statistics?

Am
- in Plugins
8

How do you query the time of a Minecraft player in a Minecraft plugin? So I mean those who can be seen by pressing ESC and then looking at statistics

Wo

You can easily track them. Do you program that yourself? Yes No?

If so, in the onEnable method, just runnable, which runs every minute and counts up a value in a hashmap with the playeruuid. Please ask such questions on spigotmc.org.

If not: download plugin.

Am

Jo so it just knows I mean something like statistics.PLAY_ONE_TIME

Wo

Or wait a minute, try it
Player # getPlayerTime ()

Wo

Which Spigot / Bukkit / Craftbukkit version do you use?

Am

Spigot 1.8.8 or 1.8.9 I'm not sure right now

Wo

Try Player # getStatistic (Statistic.PLAY_ONE_TICK)

Am

For me there's no #getStatistic or .getStatistic

Wo

Are you sure you are using the 1.8.8 API?

simple

p.getStatistic (…)