Fix TeamPlayer spawnlocation
Dieser Commit ist enthalten in:
Ursprung
eb3ec5cd24
Commit
4ac8aebaa7
@ -178,7 +178,9 @@ public class NPC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void show(Player player) {
|
private void show(Player player) {
|
||||||
|
if (Bukkit.getOnlinePlayers().stream().noneMatch(p -> p.getUniqueId().equals(uuid))) {
|
||||||
TinyProtocol.instance.sendPacket(player, addPlayerInfo);
|
TinyProtocol.instance.sendPacket(player, addPlayerInfo);
|
||||||
|
}
|
||||||
TinyProtocol.instance.sendPacket(player, namedSpawn);
|
TinyProtocol.instance.sendPacket(player, namedSpawn);
|
||||||
TinyProtocol.instance.sendPacket(player, headRotation);
|
TinyProtocol.instance.sendPacket(player, headRotation);
|
||||||
TinyProtocol.instance.sendPacket(player, skinParts);
|
TinyProtocol.instance.sendPacket(player, skinParts);
|
||||||
|
@ -43,7 +43,7 @@ public class TeamPlayer extends BasicListener {
|
|||||||
private static Map<Entity, NPC> entities = new HashMap<>();
|
private static Map<Entity, NPC> entities = new HashMap<>();
|
||||||
|
|
||||||
public static void spawnTeamPlayer(World world, String name) {
|
public static void spawnTeamPlayer(World world, String name) {
|
||||||
Location location = new Location(world, 1524.5, 52, 1493.5);
|
Location location = new Location(world, 1524.5, 52, 1481.5);
|
||||||
NPC npc = new NPC(location, SteamwarUser.get(name).getUUID(), name);
|
NPC npc = new NPC(location, SteamwarUser.get(name).getUUID(), name);
|
||||||
Villager villager = (Villager) world.spawnEntity(location, EntityType.VILLAGER);
|
Villager villager = (Villager) world.spawnEntity(location, EntityType.VILLAGER);
|
||||||
villager.setSilent(true);
|
villager.setSilent(true);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren