Exiled-Team / DiscordIntegration

GNU General Public License v3.0
14 stars 38 forks source link

[BUG] Discord bot displays number of players incorrectly #151

Closed Tamago4a closed 2 months ago

Tamago4a commented 2 months ago

Describe the bug: Discord bot displays player count incorrectly. It counts NPCs when it shouldn't.

To Reproduce: Steps to reproduce the behavior:

  1. Add plugin and configure bot
  2. Create NPC on server
  3. Make sure the number of players displayed is incorrect

EXILED Version: 8.11.0

joker-119 commented 2 months ago

This, if anything, is a bug in EXILED, and should be reported to them. It uses Player.List and that list should not contain NPCs.

This could be adjusted in the plugin, but I don't care enough to do so, willing to accept a PR for this.

Tamago4a commented 2 months ago

Got it. I thought it was your mistake. Okay, I'll make a bug report to exiled.

Tamago4a commented 2 months ago

Although I don't quite understand. Why then is the number of players in the server list displayed correctly?

Tamago4a commented 1 month ago

153