public class RollbackManager
extends java.lang.Object
This class is not officially a part of the API and therefore is subject to change across platforms.
Constructor and Description |
---|
RollbackManager(org.bukkit.plugin.Plugin plugin)
Creates a new rollback manager for the specified plugin.
|
Modifier and Type | Method and Description |
---|---|
void |
checkRollbacks()
Rolls back arenas which have not been rolled back due to a crash or unclean shutdown.
|
org.bukkit.plugin.java.JavaPlugin |
getPlugin()
Deprecated.
Relies on Bukkit
|
void |
logBlockChange(org.bukkit.block.Block block,
java.lang.String arena)
Deprecated.
Depends on Bukkit
|
void |
logInventoryChange(org.bukkit.inventory.Inventory inventory,
org.bukkit.block.Block block,
java.lang.String arena)
Logs an inventory change.
|
void |
rollback(java.lang.String arena)
Rolls back the given arena.
|
public RollbackManager(org.bukkit.plugin.Plugin plugin)
plugin
- the plugin to create the rollback manager for@Deprecated public org.bukkit.plugin.java.JavaPlugin getPlugin()
@Deprecated public void logBlockChange(org.bukkit.block.Block block, java.lang.String arena)
block
- the block which was changedarena
- the arena in which the block is containedpublic void logInventoryChange(org.bukkit.inventory.Inventory inventory, org.bukkit.block.Block block, java.lang.String arena)
inventory
- the inventory to logblock
- the block containing the inventoryarena
- the arena in which the block is containedpublic void rollback(java.lang.String arena)
This method should not be called from your plugin unless you understand the implications.
arena
- the arena to roll backpublic void checkRollbacks()