From dbeb55662930b21e62215088ad49a48f5a200095 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 23 Jun 2022 17:02:42 +0200 Subject: [PATCH] Fix packet direction --- src/de/steamwar/lobby/listener/PlayerSpawn.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/lobby/listener/PlayerSpawn.java b/src/de/steamwar/lobby/listener/PlayerSpawn.java index 2a5c058..29ff64e 100644 --- a/src/de/steamwar/lobby/listener/PlayerSpawn.java +++ b/src/de/steamwar/lobby/listener/PlayerSpawn.java @@ -58,7 +58,7 @@ public class PlayerSpawn extends BasicListener { player.setFoodLevel(20); giveItems(player); - Bukkit.getScheduler().runTaskLater(LobbySystem.getPlugin(), () -> NetworkSender.send(new ImALobbyPacket()), 20); + Bukkit.getScheduler().runTaskLater(LobbySystem.getPlugin(), () -> NetworkSender.send(new ImALobbyPacket(), player), 20); } private void giveItems(Player player) {