mirror of
https://github.com/kami-blue/client
synced 2025-01-10 08:49:26 +00:00
Update and rename PortalGodMode to PortalGodMode.java
This commit is contained in:
parent
6092bd4db4
commit
a4ffd0838f
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user