I have a file that stores certain player locations. However, when I was testing my plugin, I noticed that if someone were to exit the server without using the /stop command or just hits the x button on the console the onDisable() method is not called which is what I use to save my file, this makes sense, but I was wondering if there was a work around for this. I am considering running a repeating task that saves the file every x number of minutes or something so if the server crashes or someone just x's out not all the data from that server run is lost. I mainly just wanted to know if this is a good idea or if there is a better/alternate way to do this. Any help is appreciated, thank you!