The plugin does not delete blocks if they no longer exist

Issue #103 resolved
Former user created an issue

The plugin does not delete blocks if they no longer exist.
Example situations.:

  • Delete old world.
  • Rename the currently world.
  • Regenerate the world. (New nether world on 1.16)

If this is not possible, please add 2 commands to this plugin:

  • Delete all blocks from specific world: /rc world <worldname> deleteblocks
  • Rename the stored world name on the database: /rc world <worldname> rename <newworldname>

Comments (4)

  1. Hans Kurel repo owner

    Yeah, this was removed a while ago in an effort to speed up block loading. I’ll see how I could reimplement it.

    Renaming worlds isn’t currently supported, is it something you would use?

  2. Former user Account Deleted reporter

    Sometimes useful. I already had to renamed a world and then I had to solve it with SQL commands.

    Yeah, this was removed a while ago in an effort to speed up block loading.

    I accept this solution. It is unnecessary to check at each server startup that the blocks actually still exist in that location.
    BUT! it would be very good to have a command to manually check to this. Example.: /rc blocks check - Check all blocks exist.

    However, the solution to an old error does not work with this now. This is support for PlotSquared plot delete. https://github.com/hankur/RestrictedCreative/issues/60
    The /p delete command deletes all creative blocks without being breaking by players. These blocks are now stored indefinitely by the plugin, if I understand correctly.
    And another bug.
    What happens if a non-existent stored block is replaced by a completely different block that was placed down in survival mode?

  3. Hans Kurel repo owner

    I’ll add the renaming feature and world delete command to the to-do list.

    Actually, invalid blocks are still deleted, but only when their chunk is loaded. That means that PlotSquared blocks are still removed after restart, but blocks for deleted worlds are not.

    If it so happens that creative-marked block is removed without RC knowing about it, then any block placed on the same spot would keep the creative-placed status, even if it was placed in survival mode. However, if the server restarts and the chunk is loaded again, the non-existant block will be cleared of creative-placed status if no blocks have been placed there before the restart.

  4. Log in to comment