diff --git a/EndMinecraftPlusV2.iml b/EndMinecraftPlusV2.iml
index 061c06f..44e2880 100644
--- a/EndMinecraftPlusV2.iml
+++ b/EndMinecraftPlusV2.iml
@@ -7,14 +7,91 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VersionSupport-578/VersionSupport-578.iml b/VersionSupport-578/VersionSupport-578.iml
index ece4b54..8bfd4db 100644
--- a/VersionSupport-578/VersionSupport-578.iml
+++ b/VersionSupport-578/VersionSupport-578.iml
@@ -16,5 +16,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VersionSupport-754/VersionSupport-754.iml b/VersionSupport-754/VersionSupport-754.iml
index d9fc988..75df7c1 100644
--- a/VersionSupport-754/VersionSupport-754.iml
+++ b/VersionSupport-754/VersionSupport-754.iml
@@ -16,6 +16,23 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VersionSupport-758/VersionSupport-758.iml b/VersionSupport-758/VersionSupport-758.iml
index 4deac39..e16b257 100644
--- a/VersionSupport-758/VersionSupport-758.iml
+++ b/VersionSupport-758/VersionSupport-758.iml
@@ -16,6 +16,23 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VersionSupport-759/VersionSupport-759.iml b/VersionSupport-759/VersionSupport-759.iml
index f26e6f0..5049a2f 100644
--- a/VersionSupport-759/VersionSupport-759.iml
+++ b/VersionSupport-759/VersionSupport-759.iml
@@ -7,7 +7,6 @@
-
@@ -18,5 +17,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VersionSupport-760/VersionSupport-760.iml b/VersionSupport-760/VersionSupport-760.iml
index e76837a..95b0bc6 100644
--- a/VersionSupport-760/VersionSupport-760.iml
+++ b/VersionSupport-760/VersionSupport-760.iml
@@ -16,6 +16,23 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VersionSupport-760/src/META-INF/MANIFEST.MF b/VersionSupport-760/src/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..8001206
--- /dev/null
+++ b/VersionSupport-760/src/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: cn.serendipityr.EndMinecraftPlusV2.EndMinecraftPlusV2
+
diff --git a/src/cn/serendipityr/EndMinecraftPlusV2/VersionControl/OldVersion/AttackUtils/BotAttack.java b/src/cn/serendipityr/EndMinecraftPlusV2/VersionControl/OldVersion/AttackUtils/BotAttack.java
index 503e04f..16c3bd7 100644
--- a/src/cn/serendipityr/EndMinecraftPlusV2/VersionControl/OldVersion/AttackUtils/BotAttack.java
+++ b/src/cn/serendipityr/EndMinecraftPlusV2/VersionControl/OldVersion/AttackUtils/BotAttack.java
@@ -10,15 +10,15 @@ import cn.serendipityr.EndMinecraftPlusV2.VersionControl.OldVersion.ForgeProtoco
import io.netty.util.internal.ConcurrentSet;
import org.spacehq.mc.protocol.MinecraftProtocol;
import org.spacehq.mc.protocol.data.game.ItemStack;
+import org.spacehq.mc.protocol.data.game.values.ClientRequest;
import org.spacehq.mc.protocol.data.message.Message;
import org.spacehq.mc.protocol.packet.ingame.client.ClientChatPacket;
import org.spacehq.mc.protocol.packet.ingame.client.ClientPluginMessagePacket;
+import org.spacehq.mc.protocol.packet.ingame.client.ClientRequestPacket;
import org.spacehq.mc.protocol.packet.ingame.client.player.ClientPlayerMovementPacket;
-import org.spacehq.mc.protocol.packet.ingame.server.ServerChatPacket;
-import org.spacehq.mc.protocol.packet.ingame.server.ServerJoinGamePacket;
-import org.spacehq.mc.protocol.packet.ingame.server.ServerKeepAlivePacket;
-import org.spacehq.mc.protocol.packet.ingame.server.ServerPluginMessagePacket;
+import org.spacehq.mc.protocol.packet.ingame.server.*;
import org.spacehq.mc.protocol.packet.ingame.server.entity.player.ServerPlayerPositionRotationPacket;
+import org.spacehq.mc.protocol.packet.ingame.server.entity.player.ServerUpdateHealthPacket;
import org.spacehq.opennbt.NBTIO;
import org.spacehq.opennbt.tag.builtin.CompoundTag;
import org.spacehq.opennbt.tag.builtin.ListTag;
@@ -492,7 +492,6 @@ public class BotAttack extends IAttack {
positionPacket.put(session, packet);
}
} catch (Exception ignored) {}
-
} else if (recvPacket instanceof ServerChatPacket) {
ServerChatPacket chatPacket = (ServerChatPacket) recvPacket;
Message message = chatPacket.getMessage();
@@ -516,6 +515,12 @@ public class BotAttack extends IAttack {
if (!alivePlayers.contains(session)) {
alivePlayers.add(session);
}
+ } else if (recvPacket instanceof ServerUpdateHealthPacket) {
+ if (((ServerUpdateHealthPacket) recvPacket).getHealth() <= 0) {
+ ClientRequestPacket clientRequestPacket = new ClientRequestPacket(ClientRequest.RESPAWN);
+
+ session.send(clientRequestPacket);
+ }
}
}