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

[DISCUSSION] NPC metadatas #161

Open
UsainSrht opened this issue Aug 27, 2024 · 2 comments
Open

[DISCUSSION] NPC metadatas #161

UsainSrht opened this issue Aug 27, 2024 · 2 comments
Labels
enhancement New feature or request feature request

Comments

@UsainSrht
Copy link
Contributor

Similar to citizens' /npc metadata command but one that also works with bukkit's metadata system.

/npc <npc_name> metadata <set|delete> <string_metadata_name> <value>
Ex.
/npc teleporter metadata set myplugin-teleporter true
/npc rank-parrot metadata set rank 1
/npc rank-frog metadata set rank 2

not having to rely on running a command when implementing a npc click system would be great i guess.

@Grabsky
Copy link
Contributor

Grabsky commented Nov 22, 2024

@UsainSrht Can you tell a bit more use-case for such system? I think I'm missing a point here.

@OliverSchlueter
Copy link
Member

Since you can't get the bukkit entity of a npc, the metadata system would only be for an API feature.
You could create and register an custom NpcAttribute and whatever you want with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
Status: Backlog
Development

No branches or pull requests

3 participants