Create a Minecraft Paper Combat Log plugin for Java 1.21.11.
Features:
- When a player disconnects during combat, instantly kill them.
- Disable "/home", "/spawn", "/warp", "/tpa", and all teleportation commands during combat.
- If a player tries to escape using commands, cancel the command.
- If a player leaves the server during combat, kill them and drop their inventory.
- Add a 30-second combat timer.
- Display the remaining combat time in the action bar.
- Reset the combat timer whenever the player takes or deals damage.
- Allow all blocked commands again when combat ends.
- Make the plugin compatible with Paper 1.21.11.
- Provide a ready-to-use compiled ".jar" plugin and configuration file.
KodariNov 13 at 1:45 pm 1
CombatLogGuard
A Paper 1.21.11 combat logging plugin that punishes players who disconnect during combat by killing them and dropping their inventory. Features a 30-second combat timer displayed in the action bar, reset on damage dealt or taken, and blocks teleportation commands like /home, /spawn, /warp, and /tpa during active combat. Commands are automatically re-enabled when combat ends. Includes a configurable timer duration and a ready-to-use compiled JAR file with configuration.
[Generation stopped]
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code