Class OutpostUtil

java.lang.Object
com.palmergames.bukkit.towny.utils.OutpostUtil

public class OutpostUtil extends Object
  • 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 to
      resident - - Resident establishing the outpost
      world - - TownyWorld in which the outpost will be in
      key - - Coordinates where the outpost would be established
      isAdmin - - If the Resident is a Towny Administrator
      isPlotSetOutpost - - 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

      public static void addOutpostComponent(Town town, StatusScreen screen, Translator translator)