aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/combat
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-11-19 00:02:48 +0000
committerGitHub <noreply@github.com>2023-11-19 01:02:48 +0100
commit0b1fa4dedc21e997234694d9d11805e4996b54b6 (patch)
tree7bb6d201573f0205bf9ce73f19d65a98fb128e60 /src/main/java/at/hannibal2/skyhanni/features/combat
parentcfa64d7f4360093523029b52dabea8e30ce966b6 (diff)
downloadskyhanni-0b1fa4dedc21e997234694d9d11805e4996b54b6.tar.gz
skyhanni-0b1fa4dedc21e997234694d9d11805e4996b54b6.tar.bz2
skyhanni-0b1fa4dedc21e997234694d9d11805e4996b54b6.zip
Internal Change: Auto-Prefix Chat Messages (#622)
Add auto prefix to chat message methods. #622
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/combat')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt7
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostUtil.kt6
2 files changed, 7 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt
index 656ac7b9d..171e45f90 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt
@@ -292,8 +292,9 @@ object GhostCounter {
notifyCTModule = false
if (isUsingCTGhostCounter()) {
clickableChat(
- "§6[SkyHanni] GhostCounterV3 ChatTriggers module has been detected, do you want to import saved data ? Click here to import data",
- "shimportghostcounterdata"
+ "GhostCounterV3 ChatTriggers module has been detected, do you want to import saved data ? Click here to import data",
+ "shimportghostcounterdata",
+ prefixColor = "§6",
)
}
}
@@ -478,7 +479,7 @@ object GhostCounter {
fun onConfigLoad(event: ConfigLoadEvent) {
if (storage?.configUpdateVersion == 0) {
config.textFormatting.bestiaryFormatting.base = " &6Bestiary %display%: &b%value%"
- chat("§e[SkyHanni] Your GhostCounter config has been automatically adjusted.")
+ chat("Your GhostCounter config has been automatically adjusted.")
storage?.configUpdateVersion = CONFIG_VALUE_VERSION
}
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostUtil.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostUtil.kt
index b5b833423..9c5de8c43 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostUtil.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostUtil.kt
@@ -65,7 +65,7 @@ object GhostUtil {
val c = ProfileStorageData.profileSpecific?.ghostCounter ?: return
if (isUsingCTGhostCounter()) {
if (c.ctDataImported) {
- LorenzUtils.chat("§e[SkyHanni] §cYou already imported GhostCounterV3 data!")
+ LorenzUtils.userError("You already imported GhostCounterV3 data!")
return
}
val json = ConfigManager.gson.fromJson(
@@ -83,9 +83,9 @@ object GhostUtil {
?: json["TotalMF"].asDouble
GhostData.Option.TOTALDROPS.add(json["TotalDrops"].asDouble)
c.ctDataImported = true
- LorenzUtils.chat("§e[SkyHanni] §aImported data successfully!")
+ LorenzUtils.chat("§aImported data successfully!")
} else
- LorenzUtils.chat("§e[SkyHanni] §cGhostCounterV3 ChatTriggers module not found!")
+ LorenzUtils.error("GhostCounterV3 ChatTriggers module not found!")
}
fun String.formatText(option: GhostData.Option) = formatText(option.getInt(), option.getInt(true))