diff options
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features/keybinds')
-rw-r--r-- | src/main/kotlin/com/ambientaddons/features/keybinds/SendLastMessageKeybind.kt | 6 |
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") } |