package me.zeroeightsix.kami.module.modules.player;

import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;
import me.zeroeightsix.kami.event.events.PacketEvent;
import me.zeroeightsix.kami.module.Module;
import net.minecraft.network.play.client.CPacketConfirmTeleport;

import java.util.LinkedList;
import java.util.Queue;

/**
 * Created by GlowskiBroski on 10/14/2018.
 */
@Module.Info(name = "PortalGodMode", category = Module.Category.PLAYER)
public class PortalGodMode extends Module {


    @EventHandler
    public Listener<PacketEvent.Send> listener = new Listener<>(event -> {
       if (isEnabled() && event.getPacket() instanceof CPacketConfirmTeleport) {
           event.cancel();
       }
    });
}
