> For the complete documentation index, see [llms.txt](https://docs.cheddah-development.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddah-development.net/plugin-documentaion/skin-statues/undo-and-world-safety.md).

# Undo and World Safety

SkinStatues records the original state of each block replaced by a completed statue. Run:

```
/statue undo
```

to restore your most recently completed statue.

### What undo restores

Undo restores the block states that existed immediately before the statue was built. It does not simply replace the statue with air.

Restoration is incremental and uses the configured blocks-per-tick limit.

### One undo per player

Each player has one undo target: their latest completed statue. Creating another statue replaces that player's previous undo target.

Undo data is kept in memory only. It is lost when the server stops, restarts, or SkinStatues is disabled or reloaded.

{% hint style="warning" %}
Do not treat `/statue undo` as a replacement for world backups. If the server restarts after a statue is created, SkinStatues can no longer undo it.
{% endhint %}

### Protection against newer changes

Before restoring a block, SkinStatues checks that the block still belongs to the statue and still matches what SkinStatues placed.

If a player, plugin, or newer statue changed that position afterward, the old undo skips it instead of blindly overwriting the newer block. Because of this safety rule, an undo can intentionally leave some blocks behind when the statue area has been edited.

### Overlapping statues

Overlapping builds are handled conservatively, but they can make undo results more complicated. Avoid placing statues through one another, especially when different players own the undo targets.

### Permissions and protected areas

SkinStatues does not consult claim or region-protection plugins. Only grant command access to trusted players, and require them to inspect the destination before building.

For important areas:

1. Keep a current world backup.
2. Test at scale 1 away from builds.
3. Confirm the available height and footprint.
4. Avoid restarting before you know whether the statue should be kept.
