Skip to content

Commit

Permalink
Adds panel saving to the /challenges/panels directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Sep 18, 2021
1 parent edc6d1a commit dae779e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/world/bentobox/challenges/ChallengesAddon.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package world.bentobox.challenges;


import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
Expand Down Expand Up @@ -308,6 +309,11 @@ private void loadSettings() {
this.logError("Challenges settings could not load! Addon disabled.");
this.setState(State.DISABLED);
}

// Save existing panels.
this.saveResource("panels/main_panel.yml", false);
this.saveResource("panels/multiple_panel.yml",false);
this.saveResource("panels/gamemode_panel.yml",false);
}


Expand Down

0 comments on commit dae779e

Please sign in to comment.