mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fixed API glitch where exempted players stay exempted
This commit is contained in:
1 parent
6bd9feadd6
commit
82da97775f
2 files changed
+11
-7
No files matched your search
@@ -255,7 +255,6 @@ public class Backend
|
||||
}
|
||||
if(violation >= FLIGHT_LIMIT)
|
||||
{
|
||||
System.out.println("yep");
|
||||
flightViolation.put(name, 1);
|
||||
return true;
|
||||
}
|
||||
@@ -264,7 +263,6 @@ public class Backend
|
||||
{
|
||||
for(int i= 5;i>0;i--)
|
||||
{
|
||||
System.out.println(i);
|
||||
Location newLocation = new Location(player.getWorld(), player.getLocation().getX(), player.getLocation().getY()-i, player.getLocation().getZ());
|
||||
Block lower = newLocation.getBlock();
|
||||
if(lower.getTypeId() == 0)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user