diff options
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/config')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/config/MooConfig.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/config/MooConfig.java b/src/main/java/de/cowtipper/cowlection/config/MooConfig.java index 010a3a8..0a498dd 100644 --- a/src/main/java/de/cowtipper/cowlection/config/MooConfig.java +++ b/src/main/java/de/cowtipper/cowlection/config/MooConfig.java @@ -50,6 +50,7 @@ public class MooConfig { // SkyBlock dungeon public static int[] dungClassRange; public static boolean dungFilterPartiesWithDupes; + public static String dungPartyFinderArmorLookup; public static String dungItemQualityPos; public static boolean dungOverlayEnabled; public static int dungOverlayGuiScale; @@ -160,6 +161,8 @@ public class MooConfig { .setMinValue(-1).setIsListLengthFixed(true); Property propDungFilterPartiesWithDupes = addConfigEntry(cfg.get(Configuration.CATEGORY_CLIENT, "dungFilterPartiesWithDupes", false, "Mark parties with duplicated classes?"), true); + Property propDungPartyFinderArmorLookup = addConfigEntry(cfg.get(Configuration.CATEGORY_CLIENT, + "dungPartyFinderArmorLookup", "as a tooltip", "Show armor of player joining via party finder as a tooltip or in chat?", new String[]{"as a tooltip", "in chat", "disabled"}), true); Property propDungItemQualityPos = addConfigEntry(cfg.get(Configuration.CATEGORY_CLIENT, "dungItemQualityPos", "top", "Position of item quality in tooltip", new String[]{"top", "bottom"}), true); Property propDungOverlayEnabled = addConfigEntry(cfg.get(Configuration.CATEGORY_CLIENT, @@ -202,6 +205,7 @@ public class MooConfig { // SkyBlock dungeon dungClassRange = propDungClassRange.getIntList(); dungFilterPartiesWithDupes = propDungFilterPartiesWithDupes.getBoolean(); + dungPartyFinderArmorLookup = propDungPartyFinderArmorLookup.getString(); dungItemQualityPos = propDungItemQualityPos.getString(); dungOverlayEnabled = propDungOverlayEnabled.getBoolean(); dungOverlayPositionX = propDungOverlayPositionX.getInt(); @@ -231,6 +235,7 @@ public class MooConfig { // SkyBlock dungeon propDungClassRange.set(dungClassRange); propDungFilterPartiesWithDupes.set(dungFilterPartiesWithDupes); + propDungPartyFinderArmorLookup.set(dungPartyFinderArmorLookup); propDungItemQualityPos.set(dungItemQualityPos); propDungOverlayEnabled.set(dungOverlayEnabled); propDungOverlayPositionX.set(dungOverlayPositionX); @@ -341,6 +346,10 @@ public class MooConfig { return dungItemQualityPos.equals("top"); } + public static boolean showArmorLookupInChat() { + return "in chat".equals(dungPartyFinderArmorLookup); + } + public class ConfigEventHandler { @SubscribeEvent(priority = EventPriority.NORMAL) public void onEvent(ConfigChangedEvent.OnConfigChangedEvent e) { |