- Status
- Offline
- Joined
- Jul 18, 2023
- Messages
- 707
- Reaction score
- 3
Step right in and explore the vast treasure trove of Minecraft resources available to enhance your gaming experience! Our collection, carefully curated from the finest Minecraft sources, offers a wide range of options for you to enjoy. Whether you're seeking new tools, enchantments, skins, or mods, we have it all for free download.
At «AntiTPhere», we prioritize the importance of reliability and trustworthiness in gaming resources. That's why each item in our selection has undergone meticulous
testing to ensure optimal performance and compatibility with the latest Minecraft updates.
As passionate gamers ourselves, we understand the desire to take your gaming escapades to new heights. Whether you're a seasoned player looking to experiment with exciting mods or a newcomer wanting to explore fresh textures and worlds, we have something to cater to every Minecraft enthusiast.
At «AntiTPhere», we prioritize the importance of reliability and trustworthiness in gaming resources. That's why each item in our selection has undergone meticulous
testing to ensure optimal performance and compatibility with the latest Minecraft updates.
As passionate gamers ourselves, we understand the desire to take your gaming escapades to new heights. Whether you're a seasoned player looking to experiment with exciting mods or a newcomer wanting to explore fresh textures and worlds, we have something to cater to every Minecraft enthusiast.
AntiTPhere:
Code:
public class AntiTPhere extends Module {
public Setting<Integer> delay = this.register(new Setting<Integer>("delay", 100, 1, 1000));
Timer timer = new Timer();
Timer checktimer = new Timer();
private final Setting<Modes> mode = register(new Setting("Mode", Modes.Back));
private boolean flag = false;
public AntiTPhere() {
super("AntiTPhere", "AntiTPhere", Category.FUNNYGAME);
}
@SubscribeEvent
public void onPacketReceive(PacketEvent.Receive event) {
if (event.getPacket() instanceof SPacketChat) {
SPacketChat packet = event.getPacket();
if (packet.getChatComponent().getFormattedText().contains("Телепортирование...") && check(packet.getChatComponent().getFormattedText())) {
flag = true;
timer.reset();
}
}
}
@Override
public void onUpdate() {
if (flag && timer.passedMs(delay.getValue())) {
StringBuilder log = new StringBuilder("Тебя телепортировали в X: " + (int) mc.player.posX + " Z: " + (int) mc.player.posZ +
". Ближайшие игроки : ");
for (Entity entity : mc.world.loadedEntityList) {
if (entity instanceof EntityPlayer) {
if (entity == mc.player) {
continue;
}
log.append(entity.getName()).append(" ");
}
}
Command.sendMessage(String.valueOf(log));
switch (mode.getValue()) {
case RTP: {
mc.player.sendChatMessage("/rtp");
break;
}
case Back: {
mc.player.sendChatMessage("/back");
break;
}
case Home: {
mc.player.sendChatMessage("/home");
break;
}
case Spawn: {
mc.player.sendChatMessage("/spawn");
break;
}
}
flag = false;
}
}
public boolean check(String checkstring) {
return checktimer.passedMs(3000) && (Objects.equals(ThunderUtils.solvename(checkstring), "err"));
}
@SubscribeEvent
public void onPacketSend(PacketEvent.Send e) {
if (e.getPacket() instanceof CPacketChatMessage) {
checktimer.reset();
}
}
public enum Modes {
Back, Home, RTP, Spawn
}
}