update to 1.21.11

This commit is contained in:
Alexander Medvedev 2026-01-22 20:47:03 +01:00
parent fc2186fc32
commit 13ef61727b
5 changed files with 244 additions and 310 deletions

538
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -12,12 +12,13 @@ codegen-units = 1
log = "0.4"
simple_logger = "5.1.0"
# CLI
clap = { version = "4.5.53", features = ["derive"] }
clap = { version = "4.5.54", features = ["derive"] }
# Networking
tokio = { version = "1.48.0", features = ["net", "io-util"] }
tokio = { version = "1.49.0", features = ["net", "io-util"] }
pumpkin-protocol = { git = "https://github.com/Pumpkin-MC/Pumpkin", package = "pumpkin-protocol", default-features = false, features = ["serverbound", "clientbound"]}
pumpkin-util = { git = "https://github.com/Pumpkin-MC/Pumpkin", package = "pumpkin-util"}
pumpkin-data = { git = "https://github.com/Pumpkin-MC/Pumpkin", package = "pumpkin-data"}
crossbeam = "0.8.4"
uuid = "1.19.0"
rand = "0.9"
rand = { git = "https://github.com/rust-random/rand"}

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2025 Pumpkin MC
Copyright (c) 2026 Pumpkin MC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,7 +1,7 @@
<div align="center">
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![Current version)](https://img.shields.io/badge/current_version-1.21.10-blue)
![Current version)](https://img.shields.io/badge/current_version-1.21.11-blue)
A tool to stress test Minecraft servers by simulating numerous bot connections, helping identify performance bottlenecks and stability issues.
![Screenshot_20250223_154536](https://github.com/user-attachments/assets/b1379060-e375-44dc-95a3-91f1f2fb52dd)
@ -40,7 +40,7 @@ Here's a detailed breakdown of all available command-line arguments:
- Example: `--delay 500` (500 milliseconds delay)
- **`--spam_message "<message>"` (Optional):**
- Will send a Chat message with the specefied `spam_message_delay`.
- Will send a Chat message with the specified `spam_message_delay`.
- Example: `--spam_message "Hello, I'm a Robot"`
- **`--spam_message_delay <delay>` (Optional, Default: `210`):**

View File

@ -19,6 +19,7 @@ use pumpkin_protocol::{
ClientPacket, CompressionLevel, CompressionThreshold, ConnectionState, PacketDecodeError,
RawPacket, ServerPacket,
};
use pumpkin_util::version::MinecraftVersion;
use std::io::Write;
use std::net::SocketAddr;
use std::sync::atomic::{AtomicU32, Ordering};
@ -174,7 +175,7 @@ impl Client {
) -> Result<(), WritingError> {
let mut write = write;
write.write_var_int(&VarInt(P::PACKET_ID))?;
packet.write_packet_data(write)
packet.write_packet_data(write, &MinecraftVersion::V_1_21_11)
}
/// Sends a clientbound packet to the connected client.