13
0
Dieser Commit ist enthalten in:
yoyosource 2022-03-25 22:48:30 +01:00
Ursprung 9891dcc214
Commit 5ae38b6d3e

Datei anzeigen

@ -22,6 +22,8 @@ package de.steamwar.lobby.display;
import com.comphenix.tinyprotocol.Reflection;
import com.comphenix.tinyprotocol.TinyProtocol;
import com.mojang.authlib.GameProfile;
import de.steamwar.lobby.LobbySystem;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Player;
@ -143,7 +145,9 @@ public class NPC {
}
private void hide(Player player) {
TinyProtocol.instance.sendPacket(player, removePlayerInfo);
if (Bukkit.getOnlinePlayers().stream().noneMatch(p -> p.getUniqueId().equals(uuid))) {
TinyProtocol.instance.sendPacket(player, removePlayerInfo);
}
TinyProtocol.instance.sendPacket(player, destroy);
}