Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

NPCs doesn't spawn, and plugin disables #105

Open
ghost opened this issue Jul 28, 2022 · 2 comments
Open

NPCs doesn't spawn, and plugin disables #105

ghost opened this issue Jul 28, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 28, 2022

Describe the bug
One of my plugins use citizens for spawning npcs, and when the npc tries to spawn a npc, it gets an error

Bug on latest
Yes, 2.1.2

Errors

java.lang.NullPointerException: Cannot invoke "ga.windpvp.windspigot.WindSpigot.getLagCompensator()" because the return value of "ga.windpvp.windspigot.WindSpigot.getInstance()" is null
        at org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.teleport(CraftPlayer.java:630) ~[WindSpigot.jar:]
        at org.bukkit.craftbukkit.v1_8_R3.entity.CraftEntity.teleport(CraftEntity.java:408) ~[WindSpigot.jar:]
        at net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC.java:289) ~[?:?]
        at net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC.java:235) ~[?:?]

Additional context
Running on Java 17, Windows 11

@windcolor-dev
Copy link
Member

Can you post your NPC spawn code?

@ghost
Copy link
Author

ghost commented Aug 4, 2022

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant