▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
LagGuard

LagGuard

LagGuard is a Minecraft plugin designed to protect a player's inventory from being lost during high-ping deaths.

182
0

LagGuard - No More Lag Deaths! 1.2.2

release16 августа 2025 г.

Throughout this process, we developed a plugin for your Minecraft server named LagGuard and solved various errors we encountered along the way.

Here is a brief summary of our steps:

Initial Error Resolution: We encountered a NullPointerException that was preventing the plugin from loading. The reason for this error was that the main command, /laguard, was not defined in the plugin.yml file. As a solution, we added the command and its corresponding permission lines to the plugin.yml.

Compilation Errors: After fixing the command definition, we faced Maven compilation errors. These errors were caused by incompatibilities between the DeathListener.java and LagGuardPlugin.java classes. We resolved these issues by fixing the constructors and ensuring the classes interacted correctly with each other.

Cheat Protection: After completing the core functionality of the plugin, we addressed the issue of some cheats being able to exploit the inventory protection mechanism by generating fake ping. To solve this problem:

Instead of only checking the ping at the moment of death, we designed a system that checks the ping at both the moment of death and the moment of respawn.

We updated the LagGuardPlugin and DeathListener classes to implement this new system.

We added a new event listener class, RespawnListener. This class decides whether to restore the inventory by checking the player's ping when they respawn.

As a result, we succeeded in developing a plugin that is both functional and resistant to ping cheats.

Changelog laguard.restore komutunu ve yetkisini plugin.yml'e eklendi.

Maven derleme hatalarını çözmek için DeathListener.java ve LagGuardPlugin.java sınıflarındaki yapıcı metotlar düzeltildi.

Yüksek pingli oyunculara özel envanter koruması eklendi.

Ping hilelerini önlemek için ölüm ve yeniden doğma anında ping kontrolü yapan bir sistem entegre edildi.

Yeni bir olay dinleyicisi sınıfı olan RespawnListener eklendi.

Совместимость

Minecraft: Java Edition

1.21.x1.16.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки

Детали

Лицензия:LicenseRef-All-Rights-Reserved
Опубликован:8 месяцев назад
Обновлён:8 месяцев назад
Главная