Hidendra/LWC — Issue #240: Removing protected items/blocks through WorldEdit,Towny, etc, doesn't remove protections
Author: Zombiemold
Created: 2012-01-30 22:15:01+00:00
State: open

Basically, I am running into a little issue.

If a protected item, for example, a chest, is removed by a WorldEdit command, regenerating a chunk via the map's seed, or by any of Towny's functions, the chest will be removed, but the protection stays in that location.

This has caused some strange oddities. If a player places a NEW chest, in a location that was once occupied by a chest that would removed by the above scenarios, then the chest will get the OLD protection, and not the NEW protection.

This is especially bad with Towny. If a player owns a bunch of items protected via LWC, and the leaves the town or quits minecraft or something, and the mayor clears the plot with "/plot clear". Every location for every locked item is still saved and stored. So often times, the new tenants of a plot, try to place some doors down, but their doors have the OLD tenants locks on them automatically, because they were in the same place.

Some help with this issue would be amazing! :D