mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-28 03:57:35 +01:00
Make sure that players are removed from the playerlist every so often
This commit is contained in:
parent
705c894c7c
commit
0f156caf6a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user