Class JailUtil

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

public class JailUtil extends Object
  • Constructor Details

    • JailUtil

      public JailUtil()
  • Method Details

    • jailResident

      public static void jailResident(Resident resident, Jail jail, int cell, int hours, JailReason reason, org.bukkit.command.CommandSender jailer)
      Jails a resident.
      Parameters:
      resident - Resident being jailed.
      jail - Jail resident is being jailed into.
      cell - JailCell to spawn to.
      hours - Hours resident is jailed for.
      reason - JailReason resident is jailed for.
      jailer - CommandSender of who did the jailing or null.
    • jailResidentWithBail

      public static void jailResidentWithBail(Resident resident, Jail jail, int cell, int hours, double bail, JailReason reason, org.bukkit.command.CommandSender jailer)
      Jails a resident.
      Parameters:
      resident - Resident being jailed.
      jail - Jail resident is being jailed into.
      cell - JailCell to spawn to.
      hours - Hours resident is jailed for.
      bail - Bail amount to be paid to unjail.
      reason - JailReason resident is jailed for.
      jailer - CommandSender of who did the jailing or null.
    • unJailResident

      public static void unJailResident(Resident resident, UnJailReason reason)
      Unjails a resident.
      Parameters:
      resident - Resident being unjailed.
      reason - UnJailReason the resident is unjailed for.
    • unJailResident

      public static void unJailResident(Resident resident)
    • createJailPlot

      public static void createJailPlot(TownBlock townBlock, Town town, org.bukkit.Location location) throws TownyException
      Throws:
      TownyException
    • isQueuedToBeJailed

      public static boolean isQueuedToBeJailed(Resident resident)
    • maxJailedUnjail

      public static void maxJailedUnjail(Town town)