MineColab icon indicating copy to clipboard operation
MineColab copied to clipboard

[BUG] Blocks disappearing after restarting the server

Open iamtakingithard opened this issue 3 years ago • 8 comments

Describe the bug Blocks placed by players are disappearing after restarting the server

To Reproduce Steps to reproduce the behavior:

  1. Create a map and host
  2. Place some random blocks
  3. Exit and shutdown the server with old IP
  4. Restart the server with new IP
  5. Join on the new IP
  6. See that your blocks are missing

Expected behavior By idea everything should be saved.

Minecraft server Version 1.17, but I have seen that 1.16.4 is affected as well. Maybe other version as well

Mod/Datapack list No mods and datapacks.

iamtakingithard avatar Jun 23 '21 09:06 iamtakingithard

Ah, it seems to be a (duplicate?) of this issue https://github.com/thecoder-001/MineColab/issues/27

iamtakingithard avatar Jun 23 '21 09:06 iamtakingithard

Addition. The settings were default ones, and nothing was changed apart from online-mode value to false

iamtakingithard avatar Jun 23 '21 09:06 iamtakingithard

OK, so whoever who has this issue. Use the following files bukkit.yml and paper.yml These are a bit modified files, to make saving work correctly. If you have any issues please ping me. https://drive.google.com/file/d/1WJmipXuDqQblGpKSjtG_oniA1miHO4i1/view?usp=sharing https://drive.google.com/file/d/1bMKS6einGx1SCHz-t_RmG8_K_vWk5w5Z/view?usp=sharing

iamtakingithard avatar Jun 23 '21 09:06 iamtakingithard

Also, on the notebook click on clear, and then shutdown the server till you see these lines

[09:45:42 INFO]: Stopping server
[09:45:42 INFO]: Saving players
[09:45:42 INFO]: Saving worlds
[09:45:42 INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld
[09:45:43 INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[09:45:43 INFO]: Saving chunks for level 'ServerLevel[world_nether]'/minecraft:the_nether
[09:45:43 INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[09:45:43 INFO]: Saving chunks for level 'ServerLevel[world_the_end]'/minecraft:the_end
[09:45:43 INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[09:45:43 INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[09:45:43 INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[09:45:43 INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[09:45:43 INFO]: Flushing Chunk IO
[09:45:43 INFO]: Closing Thread Pool
[09:45:43 INFO]: Closing Server

after that you can be sure that server is saved and all good.

iamtakingithard avatar Jun 23 '21 09:06 iamtakingithard

You can also make datapack that autosaves server, by command "/save", it's a bit performance consuming but works, if you want I can link this datapack here

Shadow0Bit avatar Jun 23 '21 12:06 Shadow0Bit

Sure @Shadow0Bit

iamtakingithard avatar Jun 23 '21 15:06 iamtakingithard

Sure @Shadow0Bit

Sorry I've noticed your reply today, I haven't posted it because it doesn't work for 1.17

Shadow0Bit avatar Jul 07 '21 09:07 Shadow0Bit

Sure @Shadow0Bit

Sorry I've noticed your reply today, I haven't posted it because it doesn't work for 1.17

Sad

iamtakingithard avatar Jul 08 '21 12:07 iamtakingithard

type in stop instead of the button

DEFYREALITY250 avatar May 11 '23 23:05 DEFYREALITY250