mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-25 12:05:11 +01:00
Adds panel saving to the /challenges/panels
directory.
This commit is contained in:
parent
edc6d1a5b6
commit
dae779ea1a
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user