Bug Closed · Resolved

[MythicLib] Citizens NPCs are counted as Players

#2279 opened by Unknown 4 years ago

Unknownreported this bug

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

  1. Create a Citizen NPC with is damageable or have the Sentinel trait.
  2. Make the Citizen NPC attack/be attacked by an entity / killed.
  3. 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

https://pastebin.com/AYnpaxa5

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.

Unknowncommented

I've been also having the same issue, it spams the console and pretty much makes it unusable to spot any other issues occurring on the server while watching the console scroll live. Hope it gets fixed soon! :)

Sign in to join the discussion.