Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package se.proxus.mods.list.combat;
- import net.minecraft.src.Packet28EntityVelocity;
- import se.proxus.Gallium;
- import se.proxus.events.EventHandler;
- import se.proxus.events.list.server.EventPacketReceived;
- import se.proxus.mods.Mod;
- import se.proxus.mods.ModCategory;
- public class AntiVelocity extends Mod {
- public AntiVelocity(final Gallium client) {
- super("Anti Velocity", ModCategory.COMBAT, false, client);
- }
- @Override
- public void init() {
- setKey("NUMPAD0");
- }
- @Override
- public void onEnable() {
- getClient().getEvents().registerListener(this);
- }
- @Override
- public void onDisable() {
- getClient().getEvents().unregisterListener(this);
- }
- @EventHandler
- public void onEventPacketSent(final EventPacketReceived event) {
- if (!(event.getPacket() instanceof Packet28EntityVelocity))
- return;
- event.setCancelled(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement