Add the unjailforce command

This commit is contained in:
graywolf336
2014-02-03 18:44:38 -06:00
parent b1f4b7bb41
commit d0e41ed908
6 changed files with 62 additions and 4 deletions

View File

@ -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.
*