your current location:首页 > news>MinecraftWorldedEdit plugin recovers from snapshot

MinecraftWorldedEdit plugin recovers from snapshot

2024-12-17 06:04:26|Myriagame |source:minecraft skins

The very powerful feature of Worldedit is that it can load the range defined by your constituency and restore it from a backup without closing the server or using an external editor.

Many problems can be easily solved with this method. From the dismissal of the bear child to the repair map storage failure, or even rolling back a work you give up, you can use this method to complete.

Configuration snapshot

Tip: The new world format added by Minecraft 1.3 is supported by Worldedit 4.1.

In order to let Worldedit read your backup, you need to choose a path to store backup files.After the setting is completed, put the copy of the map or the compressed map copy into the backup folder.The following is an example of organizing a backup folder method.

Backups/ (This is a folder that stored backup) World/ (This is the map name) 2010-06-23-12-00-00.zip2010-06-22-12-00/ 2010-06-21-12-00-00.zip2010-06-20-12-00-00/world_nether/(another map) 2011-09-21-01-59-00.zip2011-09-28-18-30/Example:Configure the file entry: Backups/World

You can mix or combine different types of backups, and Worldedit can be read.You need to set the path parameters of the folder of the folder in the configuration file to make the worlddit know the location of the snapshot folder.Note that a space needs to be left between the colon and the path, otherwise you will receive an error message "Snapshot/backup Restore Not configured."You can use the relative path or you can use the absolute path.Use the location of your server.jar file relative to the path as the starting point.

If you want to restore Worldedit, the faster the better, you may need to consider putting backup on a high -speed hard disk.

file name

Worldedit requires a specific folder and file naming method.Because it uses a file name to determine which backup is new and which backup is old.At present, Worldedit does not use the modification date of the file because this date is not accurate (especially when you start a large number of replication files), so the Worldedit will be arranged in the file name (Z to A) and select the top one.EssenceSo the best naming method is to expand the number of zero-filled numbers in the name, such as Yyyy-MM-DD.

Tip: If you are using*nix or BSA, you can use the following instructions to create a Zip file ZIP -V BACKUPS /` Date "+%Y-%D-%H-%M -%s "` .zip -r world

Support storage file format

Worldedit currently only supports ZIP files.Tar files will not be supported because the tar as a central index, so that the Worldedit must read the entire compressed file to find a specific file.Because MINECRAFT stores each block in a separate file, and a map has many blocks, it is necessary to use a format that supports random access like ZIP.

Tip: Compressing your map will make it require more CPU calculations, so you should consider creating a storage file without compression (only for storage).

Zip

Worldedit will automatically use the ZIP library of Java to open the ZIP file, but it cannot handle all types of ZIP files.If you receive strange mistakes when using ZIP files as a snapshot, you should install Truezip.Worldedit will automatically use Truezip under the circumstances.

Note: The code added before a period of time damaged the ability of Worldedit to find the map folder in the ZIP file.Unfortunately, because this zip file must have the following structure:

2010-06-23-12-00-00.zip World Name /Region/Leveel.dat, etc. ... Restore // RESTORE [ Snapshot Name ]/Snap Use << i> Snapshot Name >/snap user latest/snap list [ Number ]/Snap Sel << i> List number > is very simple to recover from backup!Use // RESTORE [ Snapshot ] to restore the constituency (after selection).

The default Worldedit will automatically choose to use the latest backup, unless you give a specified snapshot.

You can use // Restore , /Snap Use << i> Snapshot Name > or /Snap Sel << i> List > Choose a different snapshot.If you use /use , you don't need to write the name of the snapshot when using /RESTORE .Use /Snap Use Latest to let Worldedit select the latest snapshot.Use /Snap list [ Number ] to display the latest available snapshot.