Skip to content
Marcelo edited this page Aug 2, 2017 · 1 revision

Orphan fields happen when a loss of sync takes place between the world data and the database when it comes to fields/unbreakables and their types. For example a diamond block is placed and a field is created. Its coordinate and type are stored on the database. PS will now prevent this block from being broken by anyone but its owner. Then the owner later breaks the block, and the entry on the database is removed. This is the standard operation. But there are unforseen powers acting on these worlds such as superpickaxes, world reverts by misuse of Worldedit commands and the well known modpack explosion that cares not for Bukkit or anything to do with it. Things may happen outside of the control of PS that could change that diamond block to something else. For example air, gone, or anther block as there is now a mountain where the house used to be. The block may be gone from the world, but the field is still in the database. So the area will still be protected by the effects of the field.

What to do?

There are two commands you can use that have opposite effects to deal with orphaned fields:

Command Description
/ps clean Clean up all orphaned fields
/ps revert Reverts all orphan fields back to the block type of the pstone

The /ps clean command is pretty straightforward. You run it and the orphaned fields are gone from the database. Got your arrow ready and decided you wanted to clear out a whole town? Boom. What about the pstones that were on there? /ps clean. Gone.

Now, in the off case that this loss of sync was due to some disaster, for instance one of your staff inadvertently reverted a piece of your world or your server crashed causing a massive revert and you had no backup, and rather than clean out these orphan fields which you want to bring them back to life. You can use the /ps revert command. This will put back the missing blocks on all orphan fields on your world.

It will literally iterate all the fields on the database, read what type id they are supposed to have, and overwriting whatever is in the world with that block, refreshing your world with whatever was stored on the database.

Clone this wiki locally