aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/config
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2020-07-31 19:10:56 +0200
committerCow <cow@volloeko.de>2020-07-31 19:10:56 +0200
commita9ba18c7178a58a88995af7edd9204cbe02638f8 (patch)
tree4a1a8af12cf42945060787f9f9950bccb4f79199 /src/main/java/de/cowtipper/cowlection/config
parent86737c14f70bd5936e9492d9f3b53c4702f5aa55 (diff)
downloadCowlection-a9ba18c7178a58a88995af7edd9204cbe02638f8.tar.gz
Cowlection-a9ba18c7178a58a88995af7edd9204cbe02638f8.tar.bz2
Cowlection-a9ba18c7178a58a88995af7edd9204cbe02638f8.zip
SkyBlock Dungeon Party Finder: Added lookup of joined players' armor
- can be disabled or changed with /moo config
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/config')
-rw-r--r--src/main/java/de/cowtipper/cowlection/config/MooConfig.java9
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) {