CitizensDev / Citizens2

Citizens - the premier plugin and API for creating server-side NPCs in Minecraft.
https://citizensnpcs.co
Open Software License 3.0
589 stars 313 forks source link

Pushing NPCs through nether portal #1684

Closed orange451 closed 4 years ago

orange451 commented 5 years ago

I spawned a human type NPC in java, via: npcs.createNPC(EntityType.PLAYER, "Test")

I then pushed him through a nether portal. He teleported after a few seconds, however when I teleported after him, he was not there. I then printed out his location in a repeating bukkit scheduled task, and saw that he was in fact in the nether. He still exists, and is pushable, but I cannot see him. Disconnecting and reconnecting does not fix the issue.

I'm using the current build of Citizens2. If you need any more information, let me know.

mcmonkey4eva commented 5 years ago

Can you replicate this without separate plugins, and only using in-game commands (like /npc create Test)?

orange451 commented 5 years ago

Using /npc create test creates an npc that is not pushable. Not sure how I could push him into the nether portal. I am not familiar with Citizens's in-game commands. I've only ever used it through my own plugins.

[EDIT] I used /npc moveto to move it into the nether portal. After a few seconds it disappeared, but when I teleported after it, it was not visible.

mcmonkey4eva commented 4 years ago

Possibly fixed in new builds (at https://ci.citizensnpcs.co/job/Citizens2/ ) by https://github.com/CitizensDev/Citizens2/commit/bbf3f281ebe9eaa0be76086ef566349f8246d57d

Please reply below if it isn't fixed yet.

brodybeckwith commented 4 years ago

Can confirm that this still appears to be an issue on the latest version. However it seems under certain circumstances you can see the NPC while in other cases not. Additionally it seems under all cases the NPC is invulnerable to any damage despite setting protected false on world event and spawn event for the NPC.