Adds panel saving to the /challenges/panels directory.

This commit is contained in:
BONNe 2021-09-18 13:02:22 +03:00
parent edc6d1a5b6
commit dae779ea1a

View File

@ -1,6 +1,7 @@
package world.bentobox.challenges;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
@ -308,6 +309,11 @@ public class ChallengesAddon extends Addon {
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);
}