Class OutpostUtil
java.lang.Object
com.palmergames.bukkit.towny.utils.OutpostUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addOutpostComponent
(Town town, StatusScreen screen, Translator translator) static boolean
OutpostTests
(Town town, Resident resident, TownyWorld world, Coord key, boolean isAdmin, boolean isPlotSetOutpost) Checks to make sure all requirements are met before an outpost can be claimed.
-
Constructor Details
-
OutpostUtil
public OutpostUtil()
-
-
Method Details
-
OutpostTests
public static boolean OutpostTests(Town town, Resident resident, TownyWorld world, Coord key, boolean isAdmin, boolean isPlotSetOutpost) throws TownyException Checks to make sure all requirements are met before an outpost can be claimed. Will check: - If there are not enough free outpost plots - If the Outpost does not meet a minimum-distance requirement- Parameters:
town
- - Town the outpost belongs toresident
- - Resident establishing the outpostworld
- - TownyWorld in which the outpost will be inkey
- - Coordinates where the outpost would be establishedisAdmin
- - If the Resident is a Towny AdministratorisPlotSetOutpost
- - If a plot is already an outpost- Returns:
- - Returns true if all required tests for outposts are met.
- Throws:
TownyException
- if a condition is not met.
-
addOutpostComponent
-