From e23aec7294ad96458c4952f7835cb8e91454ccff Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 15 Apr 2019 11:59:42 -0700 Subject: [PATCH] Add default Excavation XP values to config --- .../ConfigExperienceExcavation.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) 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; + } }