Revert "add console spam"

This reverts commit 867a168bfb.
This commit is contained in:
Bella 2019-12-17 20:56:58 -05:00
parent a1f6a4ab72
commit c55b3b3da9
1 changed files with 0 additions and 39 deletions

View File

@ -1,39 +0,0 @@
package me.zeroeightsix.kami.module.modules.bewwawho.misc;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import me.zeroeightsix.kami.event.events.PacketEvent;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.util.Wrapper;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;
import net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock;
import net.minecraft.network.play.client.CPacketUpdateSign;
import net.minecraft.util.math.BlockPos;
import net.minecraft.tileentity.TileEntitySign;
/**
* Created on 16 December by 0x2E | PretendingToCode
*/
@Module.Info(name = "ConsoleSpam", description = "Spams Spigot consoles by sending invalid UpdateSign packets", category = Module.Category.MISC)
public class ConsoleSpam extends Module {
@Override
public void onEnable() {
Command.sendChatMessage("[ConsoleSpam] Every time you right click a sign, a warning will appear in console.");
Command.sendChatMessage("[ConsoleSpam] Use an autoclicker to automate this process.");
}
@EventHandler
public Listener<PacketEvent.Send> sendListener = new Listener<>(event -> {
if (event.getPacket() instanceof CPacketPlayerTryUseItemOnBlock) {
BlockPos location = ((CPacketPlayerTryUseItemOnBlock) event.getPacket()).getPos();
Wrapper.getPlayer().connection.sendPacket(new CPacketUpdateSign(location, new TileEntitySign().signText));
}
});
}