Readd the method I removed and also change the cells to uuid.
This commit is contained in:
@ -184,10 +184,10 @@ public class Jail {
|
||||
}
|
||||
|
||||
/** Returns the cell which the given player name is jailed in, null if not. */
|
||||
public Cell getCellPrisonerIsIn(String name) {
|
||||
public Cell getCellPrisonerIsIn(UUID uuid) {
|
||||
for(Cell c : cells.values())
|
||||
if(c.getPrisoner() != null)
|
||||
if(c.getPrisoner().getName().equalsIgnoreCase(name))
|
||||
if(c.hasPrisoner())
|
||||
if(c.getPrisoner().getUUID().equals(uuid))
|
||||
return c;
|
||||
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user