Update and rename PortalGodMode to PortalGodMode.java

This commit is contained in:
Glow 2018-10-14 02:54:23 -04:00 committed by GitHub
parent 6092bd4db4
commit a4ffd0838f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,25 @@
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.CPacketPlayer;
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();
}
});
}