public class War
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
add(Nation nation) |
void |
add(Town town) |
void |
addTaskId(int id) |
void |
cancelTasks(org.bukkit.scheduler.BukkitScheduler scheduler) |
void |
checkEnd() |
void |
checkNation(Nation nation) |
void |
checkTown(Town town) |
void |
clearTaskIds() |
int |
countActiveTowns(Nation nation) |
int |
countActiveWarBlocks(Town town) |
void |
damage(Town attacker,
TownBlock townBlock) |
void |
eliminate(Nation nation) |
void |
eliminate(Town town) |
void |
end() |
Towny |
getPlugin() |
java.util.List<java.lang.String> |
getScores(int maxListing) |
java.util.List<java.lang.String> |
getStats() |
java.util.List<java.lang.Integer> |
getTaskIds() |
TownyUniverse |
getTownyUniverse() |
WarSpoils |
getWarSpoils() |
KeyValue<Town,java.lang.Integer> |
getWinningTownScore() |
boolean |
isWarringNation(Nation nation) |
boolean |
isWarTime() |
boolean |
isWarZone(WorldCoord worldCoord) |
void |
nationLeave(Nation nation) |
void |
remove(Nation nation) |
void |
remove(Town town) |
void |
remove(TownBlock townBlock) |
void |
remove(Town attacker,
Nation nation) |
void |
remove(Town attacker,
Town town) |
void |
remove(Town attacker,
TownBlock townBlock) |
void |
remove(WorldCoord worldCoord) |
void |
sendScores(org.bukkit.entity.Player player) |
void |
sendScores(org.bukkit.entity.Player player,
int maxListing) |
void |
sendStats(org.bukkit.entity.Player player) |
void |
setPlugin(Towny plugin) |
void |
setupDelay(int delay) |
void |
start() |
void |
toggleEnd() |
void |
townLeave(Town town) |
void |
townScored(Town town,
int n) |
boolean |
townsLeft(Nation nation) |
public War(Towny plugin, int startDelay)
public void addTaskId(int id)
public void clearTaskIds()
public void cancelTasks(org.bukkit.scheduler.BukkitScheduler scheduler)
public java.util.List<java.lang.Integer> getTaskIds()
public Towny getPlugin()
public void setPlugin(Towny plugin)
public void setupDelay(int delay)
public boolean isWarTime()
public TownyUniverse getTownyUniverse()
public void start()
public void end()
public void add(Nation nation)
public void add(Town town)
public boolean isWarZone(WorldCoord worldCoord)
public void townScored(Town town, int n)
public void damage(Town attacker, TownBlock townBlock) throws NotRegisteredException
NotRegisteredException
public void remove(Town attacker, TownBlock townBlock) throws NotRegisteredException
NotRegisteredException
public void remove(TownBlock townBlock) throws NotRegisteredException
NotRegisteredException
public void eliminate(Town town)
public void eliminate(Nation nation)
public void nationLeave(Nation nation)
public void townLeave(Town town)
public void remove(Nation nation)
public void remove(Town attacker, Town town) throws NotRegisteredException
NotRegisteredException
public void remove(Town town)
public boolean townsLeft(Nation nation)
public void remove(WorldCoord worldCoord)
public void checkEnd()
public void checkTown(Town town)
public void checkNation(Nation nation)
public int countActiveWarBlocks(Town town)
public int countActiveTowns(Nation nation)
public void toggleEnd()
public void sendStats(org.bukkit.entity.Player player)
public java.util.List<java.lang.String> getStats()
public void sendScores(org.bukkit.entity.Player player)
public void sendScores(org.bukkit.entity.Player player, int maxListing)
public java.util.List<java.lang.String> getScores(int maxListing)
maxListing
- Maximum lines to return. Value of -1 return all.public boolean isWarringNation(Nation nation)
public KeyValue<Town,java.lang.Integer> getWinningTownScore() throws TownyException
TownyException
public WarSpoils getWarSpoils()