diff --git a/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceExcavation.java b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceExcavation.java index 697d8687b..901a65f98 100644 --- a/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceExcavation.java +++ b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceExcavation.java @@ -1,7 +1,36 @@ package com.gmail.nossr50.config.hocon.experience; +import ninja.leaping.configurate.objectmapping.Setting; import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; +import org.bukkit.Material; + +import java.util.HashMap; @ConfigSerializable public class ConfigExperienceExcavation { + + private final static HashMap EXCAVATION_EXPERIENCE_DEFAULT; + + static { + EXCAVATION_EXPERIENCE_DEFAULT = new HashMap<>(); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.CLAY.getKey().toString(), 40); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.DIRT.getKey().toString(), 40); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.COARSE_DIRT.getKey().toString(), 40); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.PODZOL.getKey().toString(), 40); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.GRASS_BLOCK.getKey().toString(), 40); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.GRAVEL.getKey().toString(), 40); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.MYCELIUM.getKey().toString(), 40); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.SAND.getKey().toString(), 40); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.RED_SAND.getKey().toString(), 40); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.SNOW.getKey().toString(), 20); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.SNOW_BLOCK.getKey().toString(), 40); + EXCAVATION_EXPERIENCE_DEFAULT.put(Material.SOUL_SAND.getKey().toString(), 40); + } + + @Setting(value = "Excavation-Experience") + private HashMap excavationExperienceMap; + + public HashMap getExcavationExperienceMap() { + return excavationExperienceMap; + } }