Class JailUtil
java.lang.Object
com.palmergames.bukkit.towny.utils.JailUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createJailPlot
(TownBlock townBlock, Town town, org.bukkit.Location location) static boolean
isQueuedToBeJailed
(Resident resident) static void
jailResident
(Resident resident, Jail jail, int cell, int hours, JailReason reason, org.bukkit.command.CommandSender jailer) Jails a resident.static void
jailResidentWithBail
(Resident resident, Jail jail, int cell, int hours, double bail, JailReason reason, org.bukkit.command.CommandSender jailer) Jails a resident.static void
maxJailedUnjail
(Town town) static void
showBailTitleMessage
(Resident resident, Translator translator) static void
unJailResident
(Resident resident) static void
unJailResident
(Resident resident, UnJailReason reason) Unjails a resident.
-
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.
-
showBailTitleMessage
-
unJailResident
Unjails a resident.- Parameters:
resident
- Resident being unjailed.reason
- UnJailReason the resident is unjailed for.
-
unJailResident
-
createJailPlot
public static void createJailPlot(TownBlock townBlock, Town town, org.bukkit.Location location) throws TownyException - Throws:
TownyException
-
isQueuedToBeJailed
-
maxJailedUnjail
-