aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc/woverflow/chatting/Chatting.kt
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-01-14 19:44:16 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-01-14 19:44:16 +0700
commit3215c603b437d64d8c37188ce8f934e30c7ac154 (patch)
tree8ce480db0f9eae73ce37cad2cb31e1d28b34fce5 /src/main/kotlin/cc/woverflow/chatting/Chatting.kt
parentbb4ece833b793551524896dd882542cb25ff5241 (diff)
downloadChatting-3215c603b437d64d8c37188ce8f934e30c7ac154.tar.gz
Chatting-3215c603b437d64d8c37188ce8f934e30c7ac154.tar.bz2
Chatting-3215c603b437d64d8c37188ce8f934e30c7ac154.zip
update essential
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/Chatting.kt')
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/Chatting.kt12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/Chatting.kt b/src/main/kotlin/cc/woverflow/chatting/Chatting.kt
index 8bdaee6..4588847 100644
--- a/src/main/kotlin/cc/woverflow/chatting/Chatting.kt
+++ b/src/main/kotlin/cc/woverflow/chatting/Chatting.kt
@@ -153,20 +153,20 @@ object Chatting {
}
if (isSkytils) {
if (Config.chatTabs) {
- EssentialAPI.getNotifications().push(NAME, "Skytils' chat tabs can be disabled as it is replace by Chatting.\nClick here to automatically do this.", 6F) {
+ EssentialAPI.getNotifications().push(NAME, "Skytils' chat tabs can be disabled as it is replace by Chatting.\nClick here to automatically do this.", 6F, action = {
Config.chatTabs = false
ChattingConfig.chatTabs = true
ChattingConfig.hypixelOnlyChatTabs = true
Config.markDirty()
Config.writeData()
- }
+ })
}
if (Config.copyChat) {
- EssentialAPI.getNotifications().push(NAME, "Skytils' copy chat messages can be disabled as it is replace by Chatting.\nClick here to automatically do this.", 6F) {
+ EssentialAPI.getNotifications().push(NAME, "Skytils' copy chat messages can be disabled as it is replace by Chatting.\nClick here to automatically do this.", 6F, action = {
Config.copyChat = false
Config.markDirty()
Config.writeData()
- }
+ })
}
}
}
@@ -244,11 +244,11 @@ object Chatting {
Minecraft.getMinecraft().entityRenderer.setupOverlayRendering()
Minecraft.getMinecraft().framebuffer.bindFramebuffer(true)
EssentialAPI.getNotifications()
- .push("Chatting", "Chat screenshotted successfully." + (if (ChattingConfig.copyMode != 1) "\nClick to open." else "")) {
+ .push("Chatting", "Chat screenshotted successfully." + (if (ChattingConfig.copyMode != 1) "\nClick to open." else ""), action = {
if (!UDesktop.open(file)) {
EssentialAPI.getNotifications().push("Chatting", "Could not browse!")
}
- }
+ })
return image
}
}