public class PrisonerManager
extends java.lang.Object
| Constructor and Description |
|---|
PrisonerManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
Jail(JailPrisoner prisoner,
Player player)
Performs jailing of specified JailPrisoner.
|
static void |
PrepareJail(CommandSender sender,
java.lang.String[] args)
Parse jail command and prepare user for jailing (if he is online, he will be instantly jailed.
|
static void |
PrepareTransferAll(JailZone jail)
Initiate transfer of every prisoner in specified jail zone to another nearest jail zone
|
static void |
PrepareTransferAll(JailZone zone,
java.lang.String target)
Initiate transfer of every prisoner in specified jail zone to another jail zone
|
static void |
Transfer(JailPrisoner prisoner,
Player player)
Performs transfer of specified JailPrisoner.
|
static void |
UnJail(JailPrisoner prisoner,
Player player)
Performs releasing of specified JailPrisoner.
|
public static void Jail(JailPrisoner prisoner, Player player)
prisoner - JailPrisoner class of the new prisoner. Must be already inserted into databaseplayer - Player that will be teleportedpublic static void PrepareJail(CommandSender sender, java.lang.String[] args)
sender - CommandSender that send this commandargs - Arguments for the command. 0 = name, 1 = time, 2 = jailname:cellname, 3 = reasonpublic static void PrepareTransferAll(JailZone jail)
public static void PrepareTransferAll(JailZone zone, java.lang.String target)
target - Name of the destination jail zonepublic static void Transfer(JailPrisoner prisoner, Player player)
prisoner - Prisoner that will be transferedplayer - Player that will be teleportedpublic static void UnJail(JailPrisoner prisoner, Player player)
prisoner - prisoner that will be releasedplayer - Player that will be teleported