Описание
# Ravenclaw's Ping Equalizer
### Summary
**Ravenclaw's Ping Equalizer** is a client-side Fabric mod designed to create a fairer PvP environment by allowing players to artificially increase their network latency. Unlike visual-only mods, this tool introduces real packet delay at the network layer.
* **Real-time Effect:** The delay happens in the Netty event loop; the server and other opponents perceive your higher ping as genuine.
* **Purpose:** To normalize latency in competitive play (e.g., leveling the field between a 10ms player and a 100ms player).
---
### Commands
| Command | Usage | Description |
| :--- | :--- | :--- |
| **Add Delay** | `/pe add ` | Adds a fixed amount of latency to your connection._Example: `/pe add 50` adds 50ms to your native ping._ |
| **Total Target** | `/pe total ` | Automatically adjusts delay to stabilize your ping at a specific target._Example: `/pe total 100` attempts to keep you at 100ms._ |
| **Status** | `/pe status` | Displays your current settings and validation status (Client-side only). |
| **Disable** | `/pe off` | Disables the equalizer and returns connection to native speed. |
---
### Technical Architecture
**Packet Manipulation**
The mod hooks into the Minecraft client's Netty pipeline. Outgoing and incoming packets are intercepted and held in a scheduled task queue for the duration of the configured delay before being flushed. This ensures the latency is "real" regarding server-side hit registration and movement processing.
**Server Control**
Servers can directly control and query the equalizer via custom payloads:
* S2C `ravenclawspingequalizer:control`: sends a `boolean enabled` flag. Resets to enabled/off on join and disconnect.
* S2C `ravenclawspingequalizer:state_query`: sends an `int requestId`.
* C2S `ravenclawspingequalizer:state_response`: replies with `requestId`, `serverEnabled`, `mode`, `currentDelayMs`, `basePingMs`, and `totalPingMs`.
---
### Ethics & Usage
* **Rule Compliance:** While this mod is intended for fairness, some public servers may flag artificial latency manipulation as suspicious behavior. Always check server rules before using.
* **MCTiers Usage:** This mod is explicitly allowed on MCTiers for the sole purpose of equalizing ping in high-tier testing. It must not be used to gain an unfair advantage.
* **Transparency:** All status changes (enabling/disabling delay) post a public chat message. This prevents "closet usage" where a player might secretly toggle lag to gain an advantage.
### License
**MIT**