[Bug] Damage value message spamming player chat and server logs constantly
YamiKnigth opened this issue · 2 comments
Hello! I'm using Spartan Weaponry on a modded Minecraft server, and I'm encountering an issue where the following message gets spammed both in the server logs and in the in-game chat for all players, every time someone attacks:
Damage: 16.899999618530273
Additionally, this debug message appears in the logs, :
[21Apr2025 22:17:15.635] [Server thread/DEBUG] [Spartan Weaponry/]: Intercepted DamageSource.playerAttack() method! [21Apr2025 22:17:15.635] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Damage: 16.899999618530273
Intercepted DamageSource.playerAttack() method! always appear before Damage meessage on my logs
The chat spam makes the game experience very annoying for players.
The log spam makes it hard to monitor more relevant events on the server side.
This message appears every single time any player attacks an entity, making it extremely intrusive.
✅ Request:
Please remove or hide the Damage: ... message from the player chat and logs, or at least add a configuration option to disable this debug output.
If this was intended for testing or internal debugging, it should definitely be removed or disabled in public builds.
Thanks in advance for your help and for maintaining this awesome mod!
Right, so a few things about this...
The debug log stuff is definitely mine... it will only show up in the 'debug.log' file. In the currently developed version for 1.20.1, it has been removed.
The damage being shown in chat, however, is not from my mod. I've only used the chat method in my other mod, Spartan Shields to indicate to the player their powered shield is out of power when trying to block. So I cannot help you with that, sorry.

