Fix NPC.hide
Dieser Commit ist enthalten in:
Ursprung
9891dcc214
Commit
5ae38b6d3e
@ -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);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren