ProtocolLib

3M Downloads

Question about work of broadcastServerPacket and sendServerPacket methods.

armagidon-exception opened this issue ยท 0 comments

commented

Describe the question
If i send NamedEntitySpawn of specific entity from one world to 2 players which are in another dimensions will ProtocolLib send this packet to both of the players or only one who in the same dimension as that specific entity?

API method(s) used
ProtocolLibrary.getProtocolManager().broadcastServerPacket
ProtocolLibrary.getProtocolManager().sendServerPacket

Expected behavior
Entity should not spawn for player who is not in the same dimension as that specific entity.

Code
If applicable, add relevant code from your project

Additional context
Add any other context about the problem here.