From 0f156caf6aef63a3cede5559b2c3449065472261 Mon Sep 17 00:00:00 2001 From: fullwall Date: Tue, 16 Jul 2013 23:29:11 +0800 Subject: [PATCH] Make sure that players are removed from the playerlist every so often --- src/main/java/net/citizensnpcs/npc/entity/EntityHumanNPC.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/citizensnpcs/npc/entity/EntityHumanNPC.java b/src/main/java/net/citizensnpcs/npc/entity/EntityHumanNPC.java index 6d761842a..3ef779693 100644 --- a/src/main/java/net/citizensnpcs/npc/entity/EntityHumanNPC.java +++ b/src/main/java/net/citizensnpcs/npc/entity/EntityHumanNPC.java @@ -247,6 +247,9 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder { packets[i] = new Packet5EntityEquipment(id, i, getEquipment(i)); } NMS.sendPacketsNearby(current, packets); + boolean removeFromPlayerList = Setting.REMOVE_PLAYERS_FROM_PLAYER_LIST.asBoolean(); + NMS.addOrRemoveFromPlayerList(getBukkitEntity(), + npc.data().get("removefromplayerlist", removeFromPlayerList)); packetUpdateCount = 0; } }