Class JailUtil
java.lang.Object
com.palmergames.bukkit.towny.utils.JailUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateJailPlot(TownBlock townBlock, Town town, org.bukkit.Location location) static booleanisQueuedToBeJailed(Resident resident) static voidjailResident(Resident resident, Jail jail, int cell, int hours, JailReason reason, org.bukkit.command.CommandSender jailer) Jails a resident.static voidjailResidentWithBail(Resident resident, Jail jail, int cell, int hours, double bail, JailReason reason, org.bukkit.command.CommandSender jailer) Jails a resident.static voidmaxJailedUnjail(Town town) static voidshowBailTitleMessage(Resident resident, Translator translator) static voidunJailResident(Resident resident) static voidunJailResident(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
-