> 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cheddah-development.net/plugin-documentaion/skin-statues/undo-and-world-safety.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
