Automate the stress testing of a Minecraft server network using bots

Update to 1.21 (#15)

authored by Lochlainn Brindley and committed by GitHub 08168d86 fb03aa87

Changed files
+3 -3
src
main
java
com
github
puregero
minecraftstresstest
+1 -1
README.md
··· 1 1 # minecraft-stress-test 2 2 3 - Automate the stress testing of your 1.20.6 Minecraft server with bots. 3 + Automate the stress testing of your 1.21 Minecraft server with bots. 4 4 This project will log offline-mode bots into the specified server which will 5 5 fly around and explore the world. 6 6
+1 -1
src/main/java/com/github/puregero/minecraftstresstest/Bot.java
··· 14 14 15 15 16 16 public class Bot extends ChannelInboundHandlerAdapter { 17 - private static final int PROTOCOL_VERSION = Integer.parseInt(System.getProperty("bot.protocol.version", "766")); // 761 is 1.19.3 https://wiki.vg/Protocol_version_numbers 17 + private static final int PROTOCOL_VERSION = Integer.parseInt(System.getProperty("bot.protocol.version", "767")); // 767 is 1.21 https://wiki.vg/Protocol_version_numbers 18 18 private static final double CENTER_X = Double.parseDouble(System.getProperty("bot.x", "0")); 19 19 private static final double CENTER_Z = Double.parseDouble(System.getProperty("bot.z", "0")); 20 20 private static final boolean LOGS = Boolean.parseBoolean(System.getProperty("bot.logs", "true"));
+1 -1
src/main/java/com/github/puregero/minecraftstresstest/PacketIds.java
··· 85 85 86 86 public static final int 87 87 CONFIRM_TELEPORTATION = 0x00, 88 - CLIENT_RESPAWN = 0x08, 88 + CLIENT_RESPAWN = 0x09, 89 89 KEEP_ALIVE = 0x18, 90 90 SET_PLAYER_POSITION_AND_ROTATION = 0x1B, 91 91 PONG = 0x27,