diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-08 16:53:22 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-08 16:53:22 +0200 |
commit | 49292f21ec47b5bc9aa934e5f1c305c9c77b0231 (patch) | |
tree | 87f3b0f4a4b5eebff0ec52aed8cbbd616eb0f91e /src/main/java/at | |
parent | 94f5cc92fa2e120650456b3286bc9cdc80a1bf0b (diff) | |
download | skyhanni-49292f21ec47b5bc9aa934e5f1c305c9c77b0231.tar.gz skyhanni-49292f21ec47b5bc9aa934e5f1c305c9c77b0231.tar.bz2 skyhanni-49292f21ec47b5bc9aa934e5f1c305c9c77b0231.zip |
Mark SkyHanni Devs in tab list special.
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java | 5 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java index afa2ea873..58f68b2d3 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java @@ -611,6 +611,11 @@ public class MiscConfig { @ConfigOption(name = "Mark Special Persons", desc = "Show speical icons behind the name of guild members, party members, friends, and marked players.") @ConfigEditorBoolean public boolean markSpecialPersons = false; + + @Expose + @ConfigOption(name = "Mark SkyHanni Devs", desc = "Adds a §c:O §7behind the tablist name of SkyHanni's creators.") + @ConfigEditorBoolean + public boolean markSkyHanniDevs = false; } } 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 77874373d..d234b0559 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 @@ -115,6 +115,14 @@ object AdvancedPlayerList { fun ignoreCustomTabList() = SkyHanniMod.feature.dev.debugEnabled && LorenzUtils.isControlKeyDown() + private val listOfSkyHanniDevsOrPeopeWhoKnowALotAboutModdingSeceneButAreBadInCoding = listOf( + "hannibal2", + "CalMWolfs", + "HiZe", + "lrg89", + "Eisengolem", + ) + private fun createCustomName(data: PlayerData): String { val playerName = if (config.useLevelColorForName) { val c = data.levelText[3] @@ -133,6 +141,9 @@ object AdvancedPlayerList { val score = socialScore(data.name) suffix += " " + getSocialScoreIcon(score) } + if (config.markSkyHanniDevs && data.name in listOfSkyHanniDevsOrPeopeWhoKnowALotAboutModdingSeceneButAreBadInCoding) { + suffix += " §c:O" + } return "$level $playerName ${suffix.trim()}" } |