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:
parent
5a7b9859cd
commit
08370abf77
|
|
@ -32,6 +32,7 @@ public final class PlayerUtils extends JavaPlugin {
|
|||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
KeyStorage.STORAGE.save();
|
||||
}
|
||||
|
||||
private void registerCommands() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user