mirror of
https://github.com/plexusorg/Module-FalseOp.git
synced 2024-11-21 19:25:01 +00:00
Fix "temporary player" issue.
This commit is contained in:
parent
74915388bf
commit
f4f9cd8fb8
@ -36,6 +36,10 @@ public class PlayerListener extends PlexListener
|
||||
@Override
|
||||
public void onPacketSending(PacketEvent event)
|
||||
{
|
||||
if (event.isPlayerTemporary())
|
||||
{
|
||||
return;
|
||||
}
|
||||
PacketContainer packet = event.getPacket();
|
||||
byte b;
|
||||
if (packet.getIntegers().getValues().get(0) == event.getPlayer().getEntityId() && (b = packet.getBytes().getValues().get(0)) >= (byte) 24 && b <= (byte) 27)
|
||||
|
Loading…
Reference in New Issue
Block a user