Skip to content

Spectator mode is checked for PvP #724

@Folas1337

Description

@Folas1337

Describe the bug

If I am in spectator mode as a moderator/admin and spectating someone, they can use flint and steel for example and when I'm close enough, they'll be told "Folas1337 has PvP protection" which they shouldn't see because for them I am not even there.

So ideally, before checking if someone has PvP protection, also check if they're in spectator mode and if yes, don't consider them.

To reproduce the bug

  1. Go into spectator mode
  2. Be near another player
  3. Let the other player use flint and steel near you
  4. The other player gets told about your presence when they shouldn't know

Plugin and Server version

PvPManager 4.0.9
This server is running Paper version 26.1.2-63-main@711c5de (2026-05-11T08:20:02Z) (Implementing API version 26.1.2.build.63-stable)

Screenshots

I hope none is necessary

Additional information

Nothing additional to add

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions