This commit is contained in:
Brianna O'Keefe 2018-09-30 20:06:10 -04:00
parent 246c7e430f
commit fdb98950c4
2 changed files with 7 additions and 2 deletions

4
.gitignore vendored
View File

@ -6,3 +6,7 @@ out/
EpicFarming\.iml
/src/main/resources/META-INF/MANIFEST.MF
/target/
EpicFarming-API/src/main/EpicFarming-API\.iml
EpicFarming-Plugin/src/main/EpicFarming-Plugin\.iml

View File

@ -272,9 +272,10 @@ public class EpicFarmingPlugin extends JavaPlugin implements EpicFarming {
private void setupConfig() {
settingsManager.updateSettings();
ConfigurationSection levels = getConfig().createSection("settings.levels");
if (!getConfig().contains("settings.levels.Level-1")) {
ConfigurationSection levels =
getConfig().createSection("settings.levels");
if (!levels.contains("Level-1")) {
levels.set("Level-1.Radius", 1);
levels.set("Level-1.Speed-Multiplier", 1);
levels.set("Level-1.Cost-xp", 20);