public class Copy
extends java.lang.Object
CopyEndEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURRENT_MC_VERSION |
java.lang.String |
prefix |
org.bukkit.command.CommandSender |
sender |
static int |
VERSION |
Constructor and Description |
---|
Copy(int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ,
org.bukkit.World world,
java.lang.String fileName,
org.bukkit.command.CommandSender sender)
Used to schedule a copy.
|
Copy(org.bukkit.Location min,
org.bukkit.Location max,
java.lang.String fileName,
org.bukkit.command.CommandSender sender,
java.lang.String prefix)
Used to schedule a copy.
|
Modifier and Type | Method and Description |
---|---|
static int |
cancelAll()
Cancels all of the running copy operations.
|
java.lang.String |
getFileName() |
org.bukkit.Location |
getMin() |
void |
kill()
Forcefully ends the operation.
|
void |
run()
Runs the copy operation.
|
public static final java.lang.String CURRENT_MC_VERSION
public org.bukkit.command.CommandSender sender
public java.lang.String prefix
public static final int VERSION
public Copy(int minX, int minY, int minZ, int maxX, int maxY, int maxZ, org.bukkit.World world, java.lang.String fileName, 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.fileName
- The fileName 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.public Copy(org.bukkit.Location min, org.bukkit.Location max, java.lang.String fileName, org.bukkit.command.CommandSender sender, java.lang.String prefix)
min
- The location that contains data for the min location of the
region.max
- The location that contains data for the max location of the
region.fileName
- The fileName 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.prefix
- The prefix that will be used when sending messages to the
sender.public static final int cancelAll()
public final void run()
public final void kill()
public org.bukkit.Location getMin()
public java.lang.String getFileName()