forked from RepoMirrors/kami-blue
commit
9aa406598d
|
@ -15,11 +15,10 @@ import java.util.Queue;
|
||||||
@Module.Info(name = "PortalGodMode", category = Module.Category.PLAYER)
|
@Module.Info(name = "PortalGodMode", category = Module.Category.PLAYER)
|
||||||
public class PortalGodMode extends Module {
|
public class PortalGodMode extends Module {
|
||||||
|
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public Listener<PacketEvent.Send> listener = new Listener<>(event -> {
|
public Listener<PacketEvent.Send> listener = new Listener<>(event -> {
|
||||||
if (isEnabled() && event.getPacket() instanceof CPacketConfirmTeleport) {
|
if (isEnabled() && event.getPacket() instanceof CPacketConfirmTeleport) {
|
||||||
event.cancel();
|
event.cancel();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue