public class TownyWar
extends java.lang.Object
Constructor and Description |
---|
TownyWar() |
Modifier and Type | Method and Description |
---|---|
static void |
attackCanceled(CellUnderAttack cell) |
static void |
attackDefended(org.bukkit.entity.Player player,
CellUnderAttack cell) |
static void |
attackWon(CellUnderAttack cell) |
static boolean |
callAttackCellEvent(Towny plugin,
org.bukkit.entity.Player player,
org.bukkit.block.Block block,
WorldCoord worldCoord) |
static WorldCoord |
cellToWorldCoord(Cell cell) |
static void |
checkBlock(org.bukkit.entity.Player player,
org.bukkit.block.Block block,
org.bukkit.event.Cancellable event) |
static void |
checkIfNationHasMinOnlineForWar(Nation nation) |
static void |
checkIfTownHasMinOnlineForWar(Town town) |
static CellUnderAttack |
getAttackData(Cell cell) |
static java.util.List<CellUnderAttack> |
getCellsUnderAttackByPlayer(java.lang.String playerName) |
static int |
getNumActiveFlags(java.lang.String playerName)
Get the number of flags actively owned by the specified player.
|
static boolean |
isUnderAttack(Cell cell) |
static void |
onDisable() |
static void |
onEnable() |
static void |
registerAttack(CellUnderAttack cell) |
static void |
removeAttackerFlags(java.lang.String playerName) |
static void |
removeCellUnderAttack(CellUnderAttack cell) |
public static void onEnable()
public static void onDisable()
public static void registerAttack(CellUnderAttack cell) throws java.lang.Exception
java.lang.Exception
public static int getNumActiveFlags(java.lang.String playerName)
playerName
- the name of the playerpublic static boolean isUnderAttack(Cell cell)
public static CellUnderAttack getAttackData(Cell cell)
public static void removeCellUnderAttack(CellUnderAttack cell)
public static void attackWon(CellUnderAttack cell)
public static void attackDefended(org.bukkit.entity.Player player, CellUnderAttack cell)
public static void attackCanceled(CellUnderAttack cell)
public static void removeAttackerFlags(java.lang.String playerName)
public static java.util.List<CellUnderAttack> getCellsUnderAttackByPlayer(java.lang.String playerName)
public static void checkBlock(org.bukkit.entity.Player player, org.bukkit.block.Block block, org.bukkit.event.Cancellable event)
public static boolean callAttackCellEvent(Towny plugin, org.bukkit.entity.Player player, org.bukkit.block.Block block, WorldCoord worldCoord) throws TownyException
TownyException
public static void checkIfTownHasMinOnlineForWar(Town town) throws TownyException
TownyException
public static void checkIfNationHasMinOnlineForWar(Nation nation) throws TownyException
TownyException
public static WorldCoord cellToWorldCoord(Cell cell) throws NotRegisteredException
NotRegisteredException