Add pitch and yaw values to the spawn packet and use EntityType.ARMOR_STAND for setting the entity type. This change ensures the armor stand is created with the correct orientation and type.
Updated the destroyPacket to utilize getIntLists(). This change ensures proper handling of entity IDs in line with the necessary method for destroying entities.
Changed the method from getIntegerArrays() to getIntegers() to ensure the correct destruction packet is sent. This fixes an issue where entities were not being correctly destroyed, thereby preventing potential memory leaks and display errors.