Skip to content

Commit

Permalink
Fixed temporary players have ProtocolLib packet listener enabled for …
Browse files Browse the repository at this point in the history
…them (#1097)
  • Loading branch information
OmerBenGera committed May 4, 2022
1 parent 0ab853d commit a32ddb3
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -30,7 +30,8 @@ private ChangePlayerLanguageListener(SuperiorSkyblockPlugin plugin) {

@Override
public void onPacketReceiving(PacketEvent event) {
if (!ProtocolLibHook.plugin.getSettings().isAutoLanguageDetection() || event.getPlayer() == null)
if (!ProtocolLibHook.plugin.getSettings().isAutoLanguageDetection() || event.getPlayer() == null ||
event.isPlayerTemporary())
return;

PacketContainer packetContainer = event.getPacket();
Expand Down

0 comments on commit a32ddb3

Please sign in to comment.