public class WholeWorldRollback
extends java.lang.Object
Constructor and Description |
---|
WholeWorldRollback() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
backupWorld(org.bukkit.World worldToRollback)
Backs up a world for future rolling back.
|
static java.io.File |
backupWorld(org.bukkit.World worldToBackup,
java.lang.String parentDirToPutIt)
Backs up a world for future rolling back.
|
static void |
startWholeWorldRollback(org.bukkit.World worldToRollback,
org.bukkit.Location locToSendPlayers,
org.bukkit.command.CommandSender sender,
java.lang.String prefix,
java.lang.String folderWithBackup)
Starts a world rollback.
|
public static java.io.File backupWorld(org.bukkit.World worldToRollback)
worldToRollback
- The world that will be backed up.public static java.io.File backupWorld(org.bukkit.World worldToBackup, java.lang.String parentDirToPutIt)
worldToBackup
- The world that will be backed up.parentDirToPutIt
- The location where it will put the folder of the
world backup. Or null for the default location in the
RollbackCore folder.public static void startWholeWorldRollback(org.bukkit.World worldToRollback, org.bukkit.Location locToSendPlayers, org.bukkit.command.CommandSender sender, java.lang.String prefix, java.lang.String folderWithBackup)
worldToRollback
- The world to rollback.locToSendPlayers
- The location to send players in the world being
rolled back.sender
- The player to send messages to, or null for no
messages.prefix
- The prefix for sending messages to the player, if
sender is not null.folderWithBackup
- The folder where the backup is located. This is the
parent folder to the folder with the world name. Null
for default location (RollbackCore's plugin folder)java.lang.IllegalArgumentException
- if the send location is in the world being
rolled backjava.lang.IllegalArgumentException
- if the world backup folder does not exist or
is not a folderjava.lang.IllegalStateException
- if after teleporting all players, there are
still players in the world.