Citizens2 icon indicating copy to clipboard operation
Citizens2 copied to clipboard

Citizens Reload Command partially breaks Save Command

Open Ditronian opened this issue 9 years ago • 4 comments

It seems that after performing a '/citizens reload' command, Citizens will no longer save the removal of any npcs when you do /citizens save. Other commands such as '/npc rename' appear unaffected and save normally.

I have simplified the steps to replicate the problem to the following:

  1. Create a NPC.
  2. Execute /citizens save (NPC is saved in saves.yml)
  3. Execute /citizens reload
  4. Execute /npc remove (NPC is removed in game)
  5. Execute /citizens save (NPC is not removed from the saves.yml file)
  6. Execute /citizens reload (Removed NPC reappears due to removal not being saved.)

At this point the removal of any NPCs is impossible to save until a Server Restart is performed. At no point during the troubleshooting was there any console errors.

This problem has plagued my servers since I started using Citizens back in Minecraft 1.11, but until now I haven't been able to narrow down the problem to a specific cause in an isolated environment. For this troubleshooting, I was using the Spigot 1.12 and Citizens 2.0.2, with no other plugins installed.

Ditronian avatar Jul 02 '17 20:07 Ditronian

This problem, maybe, is connected with my similar issue https://github.com/CitizensDev/Citizens2/issues/1188 Have you tried last #1484 snapshot? My problem was fixed after I installed this version.

RokkoEffe avatar Jul 04 '17 13:07 RokkoEffe

Yes I was running #1484 when I did the testing, I just tried it again on a fresh install of #1485 (with it being the only plugin) and the issue remains.

This is a very old problem I had on a previous server. I'm hoping now that I've been able to narrow down how to replicate the problem it'll get resolved before my next server's launch.

Ditronian avatar Jul 11 '17 21:07 Ditronian

This is an issue I am experiencing myself, and I would also like a solution.

Kequo avatar Aug 28 '17 09:08 Kequo

I believe this was fixed at some point. If it's not, please open a new issue.

mcmonkey4eva avatar Jun 28 '18 13:06 mcmonkey4eva