Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: player predicate to control who to send info entries to #2113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DeidaraMC
Copy link
Collaborator

Addresses issue #2076
Currently Minestom has no way to prevent info entries from being sent to players through the API.

This change introduces a predicate to implement custom logic against who should receive entry packets from a player

Simple example, only send entries to other players who are in a specific list
player.setInfoEntryUpdateRule(receiver -> list.contains(receiver))

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.

None yet

1 participant