aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-23 14:34:22 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-23 14:34:22 +0200
commit0596af7bad9097f1a38d42078fbece7e33e83375 (patch)
treed7ebe96a1e0979f515b6661727a1a60f09d59dc1 /src
parentd12548c5f8235fec8b9563adb25f052c9b678874 (diff)
downloadskyhanni-0596af7bad9097f1a38d42078fbece7e33e83375.tar.gz
skyhanni-0596af7bad9097f1a38d42078fbece7e33e83375.tar.bz2
skyhanni-0596af7bad9097f1a38d42078fbece7e33e83375.zip
added Fancy Contributors toggle
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java9
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt6
2 files changed, 13 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java
index 728d75782..c66a23f08 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java
@@ -68,6 +68,15 @@ public class DevConfig {
public Position debugItemPos = new Position(90, 70);
@Expose
+ @ConfigOption(
+ name = "Fancy Contributors",
+ desc = "Marks §cSkyHanni's contributors §7fancy in the tab list. " +
+ "§eThose are the folks that coded the mod for you for free :)"
+ )
+ @ConfigEditorBoolean
+ public boolean fancyContributors = true;
+
+ @Expose
@Category(name = "Minecraft Console", desc = "Minecraft Console Settings")
public MinecraftConsoleConfig minecraftConsoles = new MinecraftConsoleConfig();
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt
index 76a5decd8..dd3d7a804 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt
@@ -197,8 +197,10 @@ object AdvancedPlayerList {
if (config.markSpecialPersons) {
suffix += " ${getSocialIcon(data.name).icon()}"
}
- ContributorManager.getTabListSuffix(data.name)?.let {
- suffix += " $it"
+ if (SkyHanniMod.feature.dev.fancyContributors) {
+ ContributorManager.getTabListSuffix(data.name)?.let {
+ suffix += " $it"
+ }
}
if (IslandType.CRIMSON_ISLE.isInIsland() && !config.hideFactions) {