From 0596af7bad9097f1a38d42078fbece7e33e83375 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 23 Apr 2024 14:34:22 +0200 Subject: added Fancy Contributors toggle --- .../at/hannibal2/skyhanni/config/features/dev/DevConfig.java | 9 +++++++++ .../skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2') 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 @@ -67,6 +67,15 @@ public class DevConfig { @Expose 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) { -- cgit