aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/ambientaddons/features/keybinds
diff options
context:
space:
mode:
authorAppability <appable@icloud.com>2022-10-17 16:11:40 -0700
committerAppability <appable@icloud.com>2022-10-17 16:11:40 -0700
commitfcd49c8b59f9c76008b5112a2e296c164b168842 (patch)
treeba3be0850cfe2185a68e6ba9fd862e5c59fd57dc /src/main/kotlin/com/ambientaddons/features/keybinds
parentd4245bb705c7d8965e6bf63c90614dcfef38dcf7 (diff)
downloadAmbientAddons-fcd49c8b59f9c76008b5112a2e296c164b168842.tar.gz
AmbientAddons-fcd49c8b59f9c76008b5112a2e296c164b168842.tar.bz2
AmbientAddons-fcd49c8b59f9c76008b5112a2e296c164b168842.zip
trapper esp
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features/keybinds')
-rw-r--r--src/main/kotlin/com/ambientaddons/features/keybinds/SendLastMessageKeybind.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/com/ambientaddons/features/keybinds/SendLastMessageKeybind.kt b/src/main/kotlin/com/ambientaddons/features/keybinds/SendLastMessageKeybind.kt
index b7e5fad..9a0a4f9 100644
--- a/src/main/kotlin/com/ambientaddons/features/keybinds/SendLastMessageKeybind.kt
+++ b/src/main/kotlin/com/ambientaddons/features/keybinds/SendLastMessageKeybind.kt
@@ -3,7 +3,7 @@ package com.ambientaddons.features.keybinds
import AmbientAddons.Companion.keyBinds
import AmbientAddons.Companion.mc
import com.ambientaddons.events.MessageSentEvent
-import com.ambientaddons.utils.SkyBlock
+import com.ambientaddons.utils.SBLocation
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import net.minecraftforge.fml.common.gameevent.InputEvent
@@ -12,7 +12,7 @@ object SendLastMessageKeybind {
@SubscribeEvent
fun onSendChat(event: MessageSentEvent) {
- if (!SkyBlock.onHypixel) return
+ if (!SBLocation.onHypixel) return
if (event.message.startsWith("/pc", ignoreCase = true)) {
lastMessage = event.message.runCatching {
substring(4 until event.message.length)
@@ -24,7 +24,7 @@ object SendLastMessageKeybind {
@SubscribeEvent
fun onKey(event: InputEvent.KeyInputEvent) {
- if (!SkyBlock.onHypixel) return
+ if (!SBLocation.onHypixel) return
if (keyBinds["spamKey"]!!.isPressed && lastMessage != null) {
mc.thePlayer.sendChatMessage("/pc $lastMessage")
}