-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add mushdisabler add stuck command add silentview civbreak support add semistrafe speed add bufferabuse flight
- Loading branch information
Showing
21 changed files
with
288 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/net/aspw/client/features/command/commands/StuckCommand.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package net.aspw.client.features.command.commands | ||
|
||
import net.aspw.client.Client | ||
import net.aspw.client.features.command.Command | ||
import net.aspw.client.features.module.modules.visual.Hud | ||
import net.aspw.client.utils.PacketUtils | ||
import net.aspw.client.visual.hud.element.elements.Notification | ||
import net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition | ||
|
||
|
||
class StuckCommand : Command("stuck", emptyArray()) { | ||
/** | ||
* Execute commands with provided [args] | ||
*/ | ||
override fun execute(args: Array<String>) { | ||
if (Client.moduleManager.getModule(Hud::class.java)?.flagSoundValue!!.get()) { | ||
Client.tipSoundManager.popSound.asyncPlay(90f) | ||
} | ||
PacketUtils.sendPacketNoEvent(C04PacketPlayerPosition(mc.thePlayer.posX, -1.0, mc.thePlayer.posZ, false)) | ||
Client.hud.addNotification( | ||
Notification( | ||
"You are stuck!", | ||
Notification.Type.INFO | ||
) | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.