mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-03-11 22:20:52 +01:00
Expect outgoing teleport after respawn.
This commit is contained in:
parent
bc30368f1c
commit
46b4641ba5
@ -173,7 +173,10 @@ public class ProtocolLibComponent implements DisableListener, INotifyReload, Joi
|
||||
public void onPlayerRespawn(final PlayerRespawnEvent event) {
|
||||
if (!registeredPacketAdapters.isEmpty()) {
|
||||
final Player player = event.getPlayer();
|
||||
dataFactory.getData(player).onJoin(player);
|
||||
final NetData data = dataFactory.getData(player);
|
||||
data.onJoin(player);
|
||||
final Location loc = player.getLocation();
|
||||
data.teleportQueue.onTeleportEvent(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user