Skip to content

Commit

Permalink
Save configuration on plugin disable in Main.java
Browse files Browse the repository at this point in the history
Added the 'saveConfig' method from 'configManager' in the 'onDisable' section in Main.java. This improvement ensures the configuration is saved whenever the plugin is disabled, improving data retention and state management.
  • Loading branch information
SmartGecko44 committed Dec 3, 2023
1 parent 046a05c commit f538f01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/gecko/wauh/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public void onEnable() {
@Override
public void onDisable() {
// Plugin shutdown logic
configManager.saveConfig();
}

public int getRadiusLimit() {
Expand Down

0 comments on commit f538f01

Please sign in to comment.