Fixed API glitch where exempted players stay exempted

This commit is contained in:
Adam committed 2012-05-21 21:45:17 -04:00
1 parent 6bd9feadd6
commit 82da97775f
2 files changed
+11 -7

No files matched your search

@@ -42,8 +42,11 @@ public class CheckManager
public void activateCheck(CheckType type)
{
manager.log("The "+type.toString()+" check was activated.");
checkIgnoreList.remove(type);
if(checkIgnoreList.contains(type))
{
manager.log("The "+type.toString()+" check was activated.");
checkIgnoreList.remove(type);
}
}
public void deactivateCheck(CheckType type)
@@ -60,13 +63,16 @@ public class CheckManager
public void exemptPlayer(Player player, CheckType type)
{
manager.log(player.getName()+" was exempted from the "+type.toString()+" check.");
exemptList.put(player,type);
exemptList.put(player, type);
}
public void unexemptPlayer(Player player, CheckType type)
{
manager.log(player.getName()+" was re-added to the "+type.toString()+" check.");
exemptList.remove(type, type);
if(exemptList.containsEntry(player, type))
{
manager.log(player.getName()+" was re-added to the "+type.toString()+" check.");
exemptList.remove(player, type);
}
}
public boolean isExempt(Player player, CheckType type)