Skip to content

Conversation

@crazycat256
Copy link
Contributor

Currently, when a player logs in, they receive a NAMED_ENTITY_SPAWN packet for all players around them, even vanished players. This allows players using appropriate mods to know if there are vanished players around them.

This PR solves this problem by blocking the packet if the player is vanished.

@LeonMangler
Copy link
Owner

Thank your for the PR! This is going in an interesting direction. However, the NAMED_ENTITY_SPAWN packet has changed several times since 1.7, so it is probably not going to work on older versions. Perhaps we need to make it e.g. a 1.20+ feature. Also currently this only checks the sv.see permission but does not account for layered permissions (sv.see.levelX, sv.use.levelX).

@crazycat256
Copy link
Contributor Author

I've fixed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants