Save key storage on plugin disable

Ensure that all keys in KeyStorage are saved when the plugin is disabled. This prevents potential data loss by explicitly saving storage during the onDisable lifecycle event.
This commit is contained in:
Teriuihi 2024-10-04 21:27:06 +02:00
parent 5a7b9859cd
commit 08370abf77

View File

@ -32,6 +32,7 @@ public final class PlayerUtils extends JavaPlugin {
@Override
public void onDisable() {
KeyStorage.STORAGE.save();
}
private void registerCommands() {