Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isNPCPlayer api #117

Closed
tanyaofei opened this issue Aug 26, 2023 · 1 comment
Closed

Add isNPCPlayer api #117

tanyaofei opened this issue Aug 26, 2023 · 1 comment

Comments

@tanyaofei
Copy link

tanyaofei commented 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 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) ?

@tanyaofei tanyaofei changed the title Add mark to the npc player Add isNPCPlayer api Aug 26, 2023
@gecolay
Copy link
Owner

gecolay commented Aug 30, 2023

@tanyaofei take a look at this. There is no need for GSit to provide this method

@gecolay gecolay closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants