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
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.
Jo so it just knows I mean something like statistics.PLAY_ONE_TIME
Or wait a minute, try it
Player # getPlayerTime ()
Which Spigot / Bukkit / Craftbukkit version do you use?
Spigot 1.8.8 or 1.8.9 I'm not sure right now
Try Player # getStatistic (Statistic.PLAY_ONE_TICK)
For me there's no #getStatistic or .getStatistic
Are you sure you are using the 1.8.8 API?
simple
p.getStatistic (…)