Make sure that players are removed from the playerlist every so often

This commit is contained in:
fullwall 2013-07-16 23:29:11 +08:00
parent 705c894c7c
commit 0f156caf6a

View File

@ -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;
}
}