Trait command on NPC's
Shilodabing opened this issue ยท 9 comments
Hello nathan!
Is a little question about the trait command.
I tried to use that trait using a command of a own plugin.
The command is /razas elegir
, this command is to open a GUI to select your race (The plugin is about races yes).
I tried to use this trait with @p at the end of the command
/mtrait command razas elegir @p
but dont work , so... do you have idea about this to solve my problem?
Regards!
Try /mtrait console false
to make the player cast it
By default command traits use the console to run the command.
But note they will need permission for the command~
A little question more , this trait its own of magic plugin right?
I want to say.. I will not have problems with citizens plugin
Yes, I was doubting about the possible "incompatibility" (I have more plugins adding more options to citizens) , But sorry for that ^^ , Thank you again
Well hopefully it's not an issue but I do wonder what happens if some other plugin tries to add a "command" trait...
Time to experiment muahaha .
Just for finish but... A NPC can have than more 1 mtrait? , for example... hat & command ?
And in that case.. How can i look , all the traits for a NPC?
NPCs can have many traits, yes ... I'm not really sure how to check them, that's kind of a Citizens question. Maybe just /trait
?