Kill messages do not work properly with projectiles
Summary
When my mob kills the player using a projectile, the mob's custom kill message is usually not displayed. Instead, "Player died" or sometimes "Player died because of Mob" is shown.
Steps to reproduce
- Download latest Paper 1.18.2 version (339)
- Download latest free MythicMobs release (v5.0.4)
- Start the server
- Make a new mob with this config: https://pastebin.com/VkrvMq42
- Make a new skill with this config: https://pastebin.com/2ANHC7vL
- Restart the server or reload MythicMobs with /mm reload
- Spawn the mob with /mm mobs spawn TestMob
- Let the mob kill you only with its Projectile skill
- "Player died" is printed in chat instead of "Player was shot by Mob"
- If the mob attacks you normally before it kills you with the Projectile skill, "Player died because of Mob" is printed.
Current behavior
When I spawn in a MythicMob who uses a Projectile skill, and that projectile damages the player when hit, when a player dies from the projectile, instead of the intended death message showing, "Player died" shows instead.
Intended correct behavior
When a MythicMob kills a player with a Projectile skill, the player's death message should read "Player was shot by Mob", as I have it set in the config
Server log file
Debug log snippet