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

Villagers despawning #1291

Closed LoXR closed 6 years ago

LoXR commented 7 years ago

Server Version: 1.12.1 Plugin Version: 2.0.22-SNAPSHOT (build 1490) What is the problem?: Was recently reported from one of the players that their named Villager had despawned right infront of them as they were working in their house. No commands or such were done at the time. So unsure if its a bug thats occured with Citizens + 1.12 or a plugin conflict of such.

mcmonkey4eva commented 7 years ago

That's common to happen from plugin conflicts. Many plugins will casually remove entities (ground items, some mob types, etc) and just include mob-typed NPCs in that for some reason :/

Kequo commented 7 years ago

Use the command to bring up your NPC list, does it display the NPC that they had?

LoXR commented 7 years ago

It doesnt, only the ones I have created with the NPC create command.

johnfriedrich commented 7 years ago

Could you provide a full plugin list? Got similiar issues. Due to this we had to replace Villager npcs with zombies. https://github.com/CitizensDev/Citizens2/issues/1214

LoXR commented 7 years ago

Plugins (86): CrazyCrates, GroupManager, PerWorldPlugins, PlugMan, BetterChairs, Lockette, RogueParkour, Arconix, Hordes, TradePlus, Ping, PandoraChatFilter, SuperDeliveryMan, Tablist, ChatColor, CoreProtect, AdvancedReporter, JustOneMore, DragonEggDrop, Essentials_WarpGUI, GappleCooldown, BetterMcmmoStats, FactionScoreboard, AutoBroadcaster, EssentialsSignFix, WorldBorder, FactionsHomes, FactionsBreak, Votifier, VoidSpawn, Multiverse-Core, ProtocolLib, DeathMessagesPrime, eZProtector, VotingPlugin, FastAsyncWorldEdit, ExploitPatcher, HideAchievements, mcMMO, ActionAnnouncer, Vault, ServerListPlus, ProtocolSupport, ColoredAnvils, FastLogin, BetterBowTrails, HolographicDisplays, Spartan, SkinsRestorer, ChestCommands, RepairPlus, DeathSpectating, WorldEdit, Orebfuscator4, Essentials, HeadDatabase, mcMMOAction, RankupForMcMMO, Citizens, HomeGUI, AdvancedMobArena, AdvancedAchievements, KitPreview, CrazyAuctions, EssentialsChat, EnjinMinecraftPlugin, CrazyEnvoy, QuickShop, WorldGuard, QuickShopWG, CommandNPC, StaffList, PlayMoreSounds, ProtocolSupportAntiBot, CombatLogX, EssentialsSpawn, AreaShop, React, AuthMe, Factions, Duels, FBasics, LiteBans, SilkSpawners, ItemFrameShops, FactionsFly

LoXR commented 7 years ago

Apparently its occured again.

Ghostlyr commented 7 years ago

I confirm the existence of the problem. Player's villagers dissapear on every world unloading. Issue does not depend on the configuration and occurs after and the presence of the problem is verified from the version 2.0.21. No any exception in the server logs. Debug mode displays only the following information:

Preventing further respawns of 5 due to DespawnReason.RELOAD
Despawned 5 DespawnReason. RELOAD
Preventing further respawns of 4 due to DespawnReason.RELOAD
Despawned 4 DespawnReason. RELOAD
Preventing further respawns of 3 due to DespawnReason.RELOAD
Despawned 3 DespawnReason. RELOAD
Removing 3 from skin tracker due to DespawnReason.CHUNK_UNLOAD
Despawned 3 DespawnReason. CHUNK_UNLOAD
Despawned id 3 due to chunk unload at [1,1]
Removing 0 from skin tracker due to DespawnReason.CHUNK_UNLOAD
Despawned 0 DespawnReason. CHUNK_UNLOAD
Despawned id 0 due to chunk unload at [-1,-1]
Removing 5 from skin tracker due to DespawnReason.CHUNK_UNLOAD
Despawned 5 DespawnReason. CHUNK_UNLOAD
Despawned id 5 due to chunk unload at [1,3]
Removing 4 from skin tracker due to DespawnReason.CHUNK_UNLOAD
Despawned 4 DespawnReason. CHUNK_UNLOAD
Despawned 3 DespawnReason. CHUNK_UNLOAD
Despawned id 3 due to chunk unload at [1,1]
Removing 0 from skin tracker due to DespawnReason.CHUNK_UNLOAD
Despawned 0 DespawnReason. CHUNK_UNLOAD
Despawned id 0 due to chunk unload at [-1,-1]
Removing 5 from skin tracker due to DespawnReason.CHUNK_UNLOAD
Despawned 5 DespawnReason. CHUNK_UNLOAD
Despawned id 5 due to chunk unload at [1,3]
Removing 4 from skin tracker due to DespawnReason.CHUNK_UNLOAD
Despawned 4 DespawnReason. CHUNK_UNLOAD
Despawned id 4 due to chunk unload at [1,2]
Tried to despawn 5 while already despawned.
Tried to despawn 4 while already despawned.
Tried to despawn 3 while already despawned.
Tried to despawn 0 while already despawned.
Retrying spawn of 0 later due to chunk being unloaded. Util.isLoaded true
Stored 0 for respawn from NPCNeedsRespawnEvent
Removing 3 from skin tracker due to DespawnReason.CHUNK_UNLOAD
Despawned 3 DespawnReason. CHUNK_UNLOAD
Despawned id 3 due to chunk unload at [1,1]
Removing 5 from skin tracker due to DespawnReason.CHUNK_UNLOAD
Despawned 5 DespawnReason. CHUNK_UNLOAD
Despawned id 5 due to chunk unload at [1,3]
Removing 4 from skin tracker due to DespawnReason.CHUNK_UNLOAD
Despawned 4 DespawnReason. CHUNK_UNLOAD
Despawned id 4 due to chunk unload at [1,2]

Last citizens 2.0.22 version build from jenkins. Last spigot 1.11.2 version build. Also tested on a clean server only with Citizens.

joxeyoco commented 6 years ago

+ mc 1.9 got same issues

Jwguy0 commented 6 years ago

Seems to be happening specifically to villager npcs. I've got a number of player npcs who remain in the world when the chunk is reloaded or returning to the game after disconnecting, but the villagers disappear and require a full /citizens reload to bring them back. They appear in the NPC list, otherwise.

Doesn't appear to be a conflict with another plugin, at least when I test them via a server with only citizens.

andfont commented 6 years ago

Please disappear the villagers npc I have tried everything I have the latest version of the plugin but nothing there is no way help please.

andfont commented 6 years ago

what is happening to me is not only with the players also with npc's players disappear the mitat of what I have, I've tried everything and in the end what I do an an npc select ID and then npc spawn and it comes back out but I'm all the same day. please fix this in the plugin version! please thanks!

mcmonkey4eva commented 6 years ago

This issue shouldn't occur except as a plugin conflict (many plugins will cause conflicts like this, especially with villager NPCs). If it is happening on clean servers + latest dev build of C2 and Spigot, then something's gone haywire...

mcmonkey4eva commented 6 years ago

See https://wiki.citizensnpcs.co/Plugin_Conflict for relevant information dealing with plugin conflicts.

If you gather more information on the issue, please reply below so we can investigate further.