aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/commands
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/commands
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/commands')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt
index c515cb7f0..de7cc4408 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt
@@ -43,7 +43,7 @@ class WikiManager {
if (!(message.startsWith("/wiki"))) return
event.isCanceled = true
if (message == "/wiki") {
- LorenzUtils.chat("§e[SkyHanni] Opening the Fandom Wiki..")
+ LorenzUtils.chat("Opening the Fandom Wiki..")
OSUtils.openBrowser("${urlPrefix}Hypixel_SkyBlock_Wiki")
} else if (message.startsWith("/wiki ") || message == ("/wikithis")) { //conditional to see if we need Special:Search page
if (message == ("/wikithis")) {
@@ -51,7 +51,7 @@ class WikiManager {
wikiTheItem(itemInHand)
} else {
val search = packet.message.split("/wiki ").last()
- LorenzUtils.chat("§e[SkyHanni] Searching the Fandom Wiki for §a$search")
+ LorenzUtils.chat("Searching the Fandom Wiki for §a$search")
val wikiUrlCustom = "$urlSearchPrefix$search&scope=internal"
OSUtils.openBrowser(wikiUrlCustom.replace(' ', '+'))
}
@@ -73,7 +73,7 @@ class WikiManager {
private fun wikiTheItem(item: ItemStack) {
val itemDisplayName = (item.nameWithEnchantment ?: return).replace("§a✔ ", "").replace("§c✖ ", "")
val internalName = item.getInternalName().asString()
- LorenzUtils.chat("§e[SkyHanni] Searching the Fandom Wiki for §a$itemDisplayName")
+ LorenzUtils.chat("Searching the Fandom Wiki for §a$itemDisplayName")
val wikiUrlSearch = if (internalName != "NONE") "$urlSearchPrefix$internalName&scope=internal"
else "$urlSearchPrefix${itemDisplayName.removeColor()}&scope=internal"
OSUtils.openBrowser(wikiUrlSearch.replace(' ', '+'))