Add some debugging code.

This commit is contained in:
graywolf336
2014-07-14 21:38:15 -05:00
parent 27b557991e
commit ce1231da39
2 changed files with 7 additions and 5 deletions

View File

@ -248,7 +248,10 @@ public class JailManager {
* @return The jail the player is in, <strong>CAN BE NULL</strong>.
*/
public Jail getJailPlayerIsIn(UUID uuid) {
if(this.cache.containsKey(uuid)) return this.cache.get(uuid).getJail();
if(this.cache.containsKey(uuid)) {
plugin.debug(uuid.toString() + " is in the cache (getJailPlayerIsIn).");
return this.cache.get(uuid).getJail();
}
for(Jail j : jails.values())
if(j.isPlayerJailed(uuid))