You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a plugin that is listening to the EntityEquipmentPacket to rewrite some equipments, but I can't detect the player is a npc player(lay and spin), so when a player commanded spin or lay, my plugin will not work cause their uuid are not the same. Hope that I can detect the player is a npc player so that i can rewrite the equipments.
Maybe you can add an api public boolean isNPCPlayer(Player player) ?
The text was updated successfully, but these errors were encountered:
tanyaofei
changed the title
Add mark to the npc player
Add isNPCPlayer api
Aug 26, 2023
Hi~
I wrote a plugin that is listening to the
EntityEquipmentPacket
to rewrite some equipments, but I can't detect the player is a npc player(lay
andspin
), so when a player commandedspin
orlay
, my plugin will not work cause their uuid are not the same. Hope that I can detect the player is a npc player so that i can rewrite the equipments.Maybe you can add an api
public boolean isNPCPlayer(Player player)
?The text was updated successfully, but these errors were encountered: