[MythicLib] Citizens NPCs are counted as Players
Summary
The plugin MythicLib tries to get data from a PLAYER NPC from Citizens, in case of death and combat, MythicLib cannot fetch the data and throws errors in the console. Related plugins are: MythicLib, Citizens and Sentinel (Sentinel due it allowing NPCs to fight, causing the error).
Non Player NPCs are not affected by this issue.
Steps to reproduce
- Create a Citizen NPC with is damageable or have the Sentinel trait.
- Make the Citizen NPC attack/be attacked by an entity / killed.
- Check console for MythicLib errors.
Current behavior
Basically MythicLib is trying to fetch data from a Citizen NPC thinking its a player, causing data error and spamming the console with errors.
Intended correct behavior
MythicLib shouldn't count as players Citizens NPCs.
Server log file
Proposed fixes
Make MythicLib ignore NPCs so they are not counted as players, that way Citizen NPCs will be able to fight/die/kill properly when using this setup.