SirBlobman / CombatLogX

A modular Spigot plugin that prevents players from logging out during combat and has many expansions for extra features.
https://www.spigotmc.org/resources/31689/
GNU General Public License v3.0
154 stars 52 forks source link

CombatLog not working when spamming commands #846

Open Marcuri02 opened 1 month ago

Marcuri02 commented 1 month ago

Server Implementation

Spigot

Server Version

1.21

Describe the bug

The bug is exploitable by using hotkeys. If you hold down a hotkey that executes any command for a few seconds, the server kicks you skipping the combat tag.

Reproduction Steps

  1. Use hotkeys
  2. Spam command
  3. The server kicks you skipping CT

Expected behaviour

Do CT

Screenshots / Videos

https://drive.google.com/file/d/1IBynpDd65Fqv_2I_wV_eBMmSGurmrhJ5/view?usp=sharing

latest log file (if applicable)

No response

CombatLogX Version

11.5.0.0.1246

Anything else?

No response

Olivoz commented 1 month ago

This is due to how CombatLogX is configured by default. To prevent accidental punishments the on kick setting is disabled in the punish.yml. Enable it and make sure to configure what kick messages cause the player to be punished.