public class Rollback
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
SIZE
The max size of sub-regions in distributed mode.
|
Constructor and Description |
---|
Rollback() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(org.bukkit.entity.Player player,
java.lang.String name,
boolean addToConf)
Used to allow players to copy without specifying coordinates using worldedit.
|
static void |
copyDistributed(int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ,
org.bukkit.World world,
java.lang.String name,
org.bukkit.command.CommandSender sender)
Deprecated.
Ever since version 2.0, this method does not increase
performance, instead it just makes it unnecceceraly complicated.
|
static void |
paste(org.bukkit.entity.Player player,
java.lang.String name)
Used to allow players to paste a saved copy where their worldedit region is.
|
static void |
pasteDistributed(int x,
int y,
int z,
org.bukkit.World world,
java.lang.String name,
org.bukkit.command.CommandSender sender)
Deprecated.
Ever since version 2.0, due to the performance improvements this
method is no longer needed. Only use it for backwards
compatibility if your plugin used distributed pastes.
|
public static final short SIZE
public static final void copy(org.bukkit.entity.Player player, java.lang.String name, boolean addToConf)
player
- The player who is copyingname
- The name and directory of the folder that will contain the
saved data. Recommended: Make a sub-folder in your
Main.plugin and put them in there.addToConf
- Used to specify if the copy should be added to the config (A
world-copy). If true, the name parameter gets overwritten.Copy
public static final void copyDistributed(int minX, int minY, int minZ, int maxX, int maxY, int maxZ, org.bukkit.World world, java.lang.String name, org.bukkit.command.CommandSender sender)
minX
- The X value of the minimum location of the region.minY
- The Y value of the minimum location of the region.minZ
- The Z value of the minimum location of the region.maxX
- The X value of the maximum location of the region.maxY
- The X value of the maximum location of the region.maxZ
- The Y value of the maximum location of the region.world
- The world that the region is in.name
- The name and directory of the folder that will contain the
saved data. Recommended: Make a sub-folder in your Main.plugin
and put them in there.sender
- Where status messages will be sent. Null for no messages,
consoleSender for console, and a player for a player.Copy
public static final void paste(org.bukkit.entity.Player player, java.lang.String name)
player
- The player who will get status messages and who's region will
be used.name
- The file/folder directory that will get pasted.public static final void pasteDistributed(int x, int y, int z, org.bukkit.World world, java.lang.String name, org.bukkit.command.CommandSender sender)
x
- Where the min-x of the paste will be pasted.y
- Where the min-y of the paste will be pasted.z
- Where the min-z of the paste will be pasted.world
- What world the paste will be pasted in.name
- The directory of the files.sender
- The person who will get status messages. Use null for no
messsages, and consoleSender for console.