#Skript-reflect X Citizens2 | Spawning a Citizen

1 messages · Page 1 of 1 (latest)

vagrant pelican
#

https://pastebin.com/Uj5upkDT

I am trying to spawn an npc through citizensAPI and have gotten help from the citizens discord to make the citizens part of the code.

However, even though I am getting no errors on reload for some reason my skript line that set {_zealot} to an npc always returns <none>, and doesn't even spawn the npc.

#

Skript-reflect X Citizens2 | Spawning a Citizen

proven sleet
#

Have you import both citizenapi and entity type before using it? or can you post the whole code here?

vagrant pelican
#

I have the paid version of citins (Citizens2) which means that the API comes with the plugin. I will compile my code and send it here soon

vagrant pelican
#

method CitizensNPCRegistry#createNPC called with (null (Null), Zealot (String)) threw a NullPointerException: type cannot be null

proven sleet
#

Can you please try import entity type?

vagrant pelican
#

Ok

#

this one right? Imma try it anyways org.bukkit.entity.EntityType

#

It works yay

#

now I just have some citizen problems to attend to