Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ import com.lambda.command.LambdaCommand
import com.lambda.config.Configuration
import com.lambda.util.Communication.info
import com.lambda.util.extension.CommandBuilder
import com.lambda.util.text.buildText
import com.lambda.util.text.highlighted
import com.lambda.util.text.literal

object ConfigCommand : LambdaCommand(
name = "config",
Expand Down Expand Up @@ -69,7 +66,7 @@ object ConfigCommand : LambdaCommand(
required(string("setting")) { setting ->
suggests { ctx, builder ->
val conf = config(ctx).value()
Configuration.configurableByName(conf)?.let { configurable ->
Configuration.configurableByCommandName(conf)?.let { configurable ->
configurable.settings.forEach {
builder.suggest(it.commandName)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ object ModuleCommand : LambdaCommand(
literal("Enabled Modules: ")
}
joinToText(enabled) {
clickEvent(suggestCommand("$prefix${input} ${it.name}")) {
clickEvent(suggestCommand("$prefix${input} ${it.commandName}")) {
styled(if (it.isEnabled) Color.GREEN else Color.RED) {
literal(it.name)
literal(it.commandName)
}
}
}
Expand All @@ -76,7 +76,7 @@ object ModuleCommand : LambdaCommand(
required(string("module name")) { moduleName ->
suggests { _, builder ->
ModuleRegistry.modules.map {
it.name
it.commandName
}.forEach {
builder.suggest(it)
}
Expand All @@ -86,7 +86,7 @@ object ModuleCommand : LambdaCommand(
executeWithResult {
val name = moduleName().value()
val module = ModuleRegistry.modules.find {
it.name.equals(name, true)
it.commandName.equals(name, true)
} ?: return@executeWithResult failure(buildText {
styled(Color.RED) {
literal("Module ")
Expand All @@ -97,7 +97,7 @@ object ModuleCommand : LambdaCommand(
}
val similarModules = StringUtils.findSimilarStrings(
name,
ModuleRegistry.moduleNames,
ModuleRegistry.moduleCommandNames,
3
)
if (similarModules.isEmpty()) return@buildText
Expand Down
3 changes: 3 additions & 0 deletions common/src/main/kotlin/com/lambda/module/ModuleRegistry.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ object ModuleRegistry : Loadable {
val moduleNames: Set<String>
get() = modules.map { it.name }.toSet()

val moduleCommandNames: Set<String>
get() = modules.map { it.commandName }.toSet()

override fun load(): String {
return "Loaded ${modules.size} modules with ${modules.sumOf { it.settings.size }} settings"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import java.awt.Color
import kotlin.math.hypot

object ClickGui : Module(
name = "ClickGui",
name = "Click Gui",
description = "sexy again",
defaultTags = setOf(ModuleTag.CLIENT),
defaultKeybind = KeyCode.Y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import com.lambda.module.tag.ModuleTag
import java.awt.Color

object GuiSettings : Module(
name = "GuiSettings",
name = "Gui Settings",
description = "Visual behaviour configuration",
defaultTags = setOf(ModuleTag.CLIENT)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import java.awt.Color

// This is the worst code I have ever wrote in my life
object LambdaMoji : Module(
name = "LambdaMoji",
name = "Lambda-Moji",
description = "",
defaultTags = setOf(ModuleTag.CLIENT, ModuleTag.RENDER),
enabledByDefault = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import com.lambda.module.tag.ModuleTag
import java.awt.Color

object RenderSettings : Module(
name = "RenderSettings",
name = "Render Settings",
description = "Renderer configuration",
defaultTags = setOf(ModuleTag.CLIENT)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import com.lambda.module.tag.ModuleTag
import com.lambda.util.world.raycast.InteractionMask

object TaskFlowModule : Module(
name = "TaskFlow",
name = "Task Flow",
description = "Settings for task automation",
defaultTags = setOf(ModuleTag.CLIENT, ModuleTag.AUTOMATION)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import net.minecraft.text.Text
import java.awt.Color

object AutoDisconnect : Module(
name = "AutoDisconnect",
name = "Auto Disconnect",
description = "Automatically disconnects when in danger or on low health",
defaultTags = setOf(ModuleTag.COMBAT)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import net.minecraft.entity.player.PlayerEntity
import net.minecraft.item.Items

object AutoTotem : Module(
name = "AutoTotem",
name = "Auto Totem",
description = "Swaps the your off-hand item to a totem",
defaultTags = setOf(ModuleTag.COMBAT, ModuleTag.PLAYER),
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import kotlin.math.max
import kotlin.time.Duration.Companion.milliseconds

object CrystalAura : Module(
name = "CrystalAura",
name = "Crystal Aura",
description = "Automatically attacks entities with crystals",
defaultTags = setOf(ModuleTag.COMBAT),
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import java.util.*
import kotlin.time.Duration.Companion.seconds

object FakePlayer : Module(
name = "FakePlayer",
name = "Fake Player",
description = "Spawns a fake player",
defaultTags = setOf(ModuleTag.COMBAT),
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import net.minecraft.util.Hand
import net.minecraft.util.math.Vec3d

object KillAura : Module(
name = "KillAura",
name = "Kill Aura",
description = "Attacks entities",
defaultTags = setOf(ModuleTag.COMBAT, ModuleTag.RENDER)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import com.lambda.module.Module
import com.lambda.module.tag.ModuleTag

object BaritoneTest : Module(
name = "BaritoneTest",
name = "Baritone Test",
description = "Test Baritone",
defaultTags = setOf(ModuleTag.DEBUG)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import net.minecraft.util.math.Vec3i
import java.awt.Color

object BlockTest : Module(
name = "BlockTest",
name = "Block Test",
description = "BlockTest",
defaultTags = setOf(ModuleTag.DEBUG),
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import com.lambda.task.tasks.AcquireMaterial.Companion.acquire
import net.minecraft.item.Items

object ContainerTest : Module(
name = "ContainerTest",
name = "Container Test",
description = "Test container",
defaultTags = setOf(ModuleTag.DEBUG)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import com.lambda.util.combat.DamageUtils.fallDamage
import com.lambda.util.combat.DamageUtils.isFallDeadly

object FallTest : Module(
name = "FallTest",
name = "Fall Test",
defaultTags = setOf(ModuleTag.DEBUG),
) {
init {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ import com.lambda.module.Module
import com.lambda.module.tag.ModuleTag
import com.lambda.util.Communication.info
import com.lambda.util.DynamicReflectionSerializer.dynamicString
import net.minecraft.network.packet.c2s.play.*
import net.minecraft.network.packet.c2s.play.ClickSlotC2SPacket
import net.minecraft.network.packet.c2s.play.CloseHandledScreenC2SPacket
import net.minecraft.network.packet.c2s.play.CraftRequestC2SPacket
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket
import net.minecraft.network.packet.c2s.play.PickFromInventoryC2SPacket
import net.minecraft.network.packet.c2s.play.SlotChangedStateC2SPacket
import net.minecraft.network.packet.c2s.play.UpdateSelectedSlotC2SPacket
import net.minecraft.network.packet.s2c.play.InventoryS2CPacket
import net.minecraft.network.packet.s2c.play.UpdateSelectedSlotS2CPacket

object InventoryDebug : Module(
name = "InventoryDebug",
name = "Inventory Debug",
description = "Debugs the inventory",
defaultTags = setOf(ModuleTag.DEBUG)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import net.minecraft.util.math.Box
import java.awt.Color

object RenderTest : Module(
name = "Render:shrimp:Test:canned_food:",
name = "Render:shrimp: Test:canned_food:",
description = "RenderTest",
defaultTags = setOf(ModuleTag.DEBUG)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import net.minecraft.util.math.BlockPos
import java.awt.Color

object SettingTest : Module(
name = "SettingTest",
name = "Setting Test",
defaultTags = setOf(ModuleTag.DEBUG)
) {
// CharSetting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ import com.lambda.event.listener.SafeListener.Companion.listenConcurrently
import com.lambda.module.Module
import com.lambda.module.tag.ModuleTag
import com.lambda.util.Communication.info
import com.lambda.util.KeyCode
import net.minecraft.block.Blocks
import net.minecraft.util.math.BlockPos
import java.awt.Color

object TimerTest : Module(
name = "TimerTest",
name = "Timer Test",
defaultTags = setOf(ModuleTag.DEBUG)
) {
private var last = 0L
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import java.awt.Color
import java.util.concurrent.ConcurrentLinkedDeque

object BackTrack : Module(
name = "BackTrack",
name = "Back Track",
description = "Gives reach advantage by delaying your packets",
defaultTags = setOf(ModuleTag.MOVEMENT)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import com.lambda.util.player.MovementUtils.addSpeed
import net.minecraft.sound.SoundEvents

object ElytraFly : Module(
name = "ElytraFly",
name = "Elytra Fly",
description = "Allows you to fly with an elytra",
defaultTags = setOf(ModuleTag.MOVEMENT, ModuleTag.GRIM)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import net.minecraft.entity.passive.AbstractHorseEntity
import net.minecraft.network.packet.c2s.play.PlayerInteractEntityC2SPacket

object EntityControl : Module(
name = "EntityControl",
name = "Entity Control",
description = "Control mountable entities",
defaultTags = setOf(ModuleTag.MOVEMENT)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import net.minecraft.util.math.Direction
import net.minecraft.util.math.Vec3d

object NoFall : Module(
name = "NoFall",
name = "No Fall",
description = "Reduces fall damage",
defaultTags = setOf(ModuleTag.MOVEMENT)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import com.lambda.util.player.MovementUtils.motionZ
import net.minecraft.entity.LivingEntity

object SafeWalk : Module(
name = "SafeWalk",
name = "Safe Walk",
description = "Keeps you at the edge",
defaultTags = setOf(ModuleTag.MOVEMENT, ModuleTag.GRIM)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import com.lambda.util.player.MovementUtils.mergeFrom
import kotlin.math.pow

object TargetStrafe : Module(
name = "TargetStrafe",
name = "Target Strafe",
description = "Automatically strafes around entities",
defaultTags = setOf(ModuleTag.MOVEMENT)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket
import net.minecraft.network.packet.s2c.play.EntityVelocityUpdateS2CPacket

object TickShift : Module(
name = "TickShift",
name = "Tick Shift",
description = "Smort tickshift for smort anticheats",
defaultTags = setOf(ModuleTag.MOVEMENT)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ import com.lambda.util.PacketUtils.handlePacketSilently
import com.lambda.util.PacketUtils.sendPacketSilently
import com.lambda.util.ServerPacket
import kotlinx.coroutines.delay
import net.minecraft.network.listener.ClientPacketListener
import net.minecraft.network.listener.ServerPacketListener
import net.minecraft.network.packet.Packet
import net.minecraft.network.packet.c2s.common.KeepAliveC2SPacket
import java.util.concurrent.ConcurrentLinkedDeque

object PacketDelay : Module(
name = "PacketDelay",
name = "Packet Delay",
description = "Delays packets client-bound & server-bound",
defaultTags = setOf(ModuleTag.NETWORK),
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ import com.lambda.module.tag.ModuleTag
import com.lambda.util.Communication.info
import com.lambda.util.collections.LimitedDecayQueue
import net.minecraft.network.packet.c2s.common.CommonPongC2SPacket
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket.*
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket.Full
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket.LookAndOnGround
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket.OnGroundOnly
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket.PositionAndOnGround
import net.minecraft.network.packet.c2s.play.TeleportConfirmC2SPacket

// ToDo: HUD info
object PacketLimiter : Module(
name = "PacketLimiter",
name = "Packet Limiter",
description = "Limits the amount of packets sent to the server",
defaultTags = setOf(ModuleTag.NETWORK)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import java.time.format.DateTimeFormatter
import kotlin.io.path.pathString

object PacketLogger : Module(
name = "PacketLogger",
name = "Packet Logger",
description = "Serializes network traffic and persists it for later analysis",
defaultTags = setOf(ModuleTag.NETWORK, ModuleTag.DEBUG)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import net.minecraft.text.ClickEvent
import java.awt.Color

object ServerSpoof : Module(
name = "ServerSpoof",
name = "Server Spoof",
description = "Decide yourself if you want to accept the server resource pack.",
defaultTags = setOf(ModuleTag.NETWORK)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import org.lwjgl.glfw.GLFW.GLFW_MOD_SHIFT
import org.lwjgl.glfw.GLFW.GLFW_MOD_SUPER

object ClickFriend : Module(
name = "ClickFriend",
name = "Click Friend",
description = "Add or remove friends with a single click",
defaultTags = setOf(ModuleTag.PLAYER)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import net.minecraft.util.math.Box
import java.awt.Color

object FastBreak : Module(
name = "FastBreak",
name = "Fast Break",
description = "Break blocks faster.",
defaultTags = setOf(
ModuleTag.PLAYER, ModuleTag.WORLD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import net.minecraft.util.math.EightWayDirection
import net.minecraft.util.math.Vec3i

object HighwayTools : Module(
name = "HighwayTools",
name = "Highway Tools",
description = "Auto highway builder",
defaultTags = setOf(ModuleTag.PLAYER, ModuleTag.AUTOMATION)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import net.minecraft.client.network.ClientPlayerEntity
import org.lwjgl.glfw.GLFW.*

object InventoryMove : Module(
name = "InventoryMove",
name = "Inventory Move",
description = "Allows you to move with GUIs opened",
defaultTags = setOf(ModuleTag.PLAYER, ModuleTag.MOVEMENT)
) {
Expand Down
Loading