Update v1.0.2
In this update, I fixed a few bugs as well as added in an API for devs and a new placeholder! PlayTime was also completely recoded to make the plugin more efficient!
API:
Simply add this resource to your plugin then use the import below:
Code (Text):
import me.Cmaaxx.PlayTime.PlayTimeAPI;
The values will return in a String. To get the values use either:
Code (Text):
PlayTimeAPI.getTime(player)[/SIZE][/FONT][/CENTER]
[FONT=Courier New][SIZE=4]
[CENTER]PlayTimeAPI.getOfflineTime(player)
getTime will return the playtime of player, while getOfflineTime will return the playtime of an offline player.
Placeholder:
I added in the placeholder, %joindate%. This placeholder will return the exact date the player joined the server.