#(andre601) How can you listen to an NPC (un)equipping armor/items?

14 messages · Page 1 of 1 (latest)

dreamy hollow
#

Looking through the javadocs, I can see that there doesn't seem to be any direct event corresponding to an NPC equipping or unequipping items (By that I mean the player adding items to the NPC's equipment via the editor).

What would be the aproach here to know when an NPC (un)equips items? Given that it seems to be a trait, would I listen for the NPCTraitEvent? Or is there a different aproach?

barren parcelBOT
#

(andre601) How can you listen to an NPC (un)equipping armor/items?

barren parcelBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

glossy ledge
#

I can add an event if you need

dreamy hollow
#

Maybe in the future. I'm in the process of proposing a compat feature for a plugin that works with Citizens, so I wanted to know what a good aproach here would be.

glossy ledge
#

added in new version

bright zodiacBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@dreamy hollow

dreamy hollow
# bright zodiac <@204232208049766400>

I find it a bit odd that the bot sends the mention separately. Why not include it within the command response itself? neofox_think
(I mean outside of the embed as part of the main message content, just to be clear)

glossy ledge
proper lodge
#

Was a very active testing / bugfix situation at the time the bot was made that led to it working the way it does now

dreamy hollow
#

ok