HomeJavaModsPlayTime API
PlayTime API
This is an API that can be used for plugin development when you need to get the player's current and total playtime. There are no commands and no config since this is just an API.



Integration:

in your plugin.yml:

depend: [PlayTimeAPI]



You can get acces to the API class but using: PlayTimeAPI api = new PlayTimeAPI();



Updated,here is everything better explained:
https://gist.github.com/gochi9/b750da1c663cc1aa68c1fbfa1fb43443

If you find a bug or have any suggestion please leave it in the comment or contact me on my discord: Balustrada#6572
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.

PlayTime API is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 621 times (via Spigot). Download it and open it directly in the game.

Explore more