Hello, I was requested to code a plugin, where I would have to save all players play-time on a server. Where I would also have two commands which are /playtime (player) and a command to see the top 5 of most active players (players with the most amount of playtime). Now, because there is /playtime (player) and I want the top command to be real-time, I need some advice about what the best way would be to go about this. I've thought of a few things myself: - 1. When a player joins the server, they get put into a hashmap where it would put the current time / current date, and when they leave it would grab the time / date of when they left and compare that to the one in the hashmap, then it would add that time thats calculated (in seconds) to a file where it saves all player time for each player. Now if I were to grab the playertime for a player I would just grab the time in the file (where it saves all playertime) and calculate the difference between the hashmap and the current time etcetera, to get their playtime. Same goes for the beasttop. - 2. On enable it would start a runnable, which every second adds 1 'point' or second to the file where playertime for each player is saved for each player. That way I wouldn't need to measure the time between the login time and their current time, and it would be real time aswell. But would this be good performance wise? Thanks in advance!