Add the unjailforce command
This commit is contained in:
@ -137,6 +137,18 @@ public class JailManager {
|
||||
return this.jails.get(name) != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the {@link Jail jail} the given prisoner is in.
|
||||
*
|
||||
* @param prisoner The prisoner data for the prisoner we are checking
|
||||
* @return The jail the player is in, <strong>CAN BE NULL</strong>.
|
||||
*/
|
||||
public Jail getJailPrisonerIsIn(Prisoner prisoner) {
|
||||
if(prisoner == null) return null;
|
||||
|
||||
return getJailPlayerIsIn(prisoner.getName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the {@link Jail jail} the given player is in.
|
||||
*
|
||||
|
Reference in New Issue
Block a user