mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Merge branch 'master' of github.com:h31ix/AntiCheat into development
This commit is contained in:
commit
287fd3f293
2 files changed
+11
-7
No files matched your search
@@ -255,7 +255,6 @@ public class Backend
|
|||||||
}
|
}
|
||||||
if(violation >= FLIGHT_LIMIT)
|
if(violation >= FLIGHT_LIMIT)
|
||||||
{
|
{
|
||||||
System.out.println("yep");
|
|
||||||
flightViolation.put(name, 1);
|
flightViolation.put(name, 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -264,7 +263,6 @@ public class Backend
|
|||||||
{
|
{
|
||||||
for(int i= 5;i>0;i--)
|
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());
|
Location newLocation = new Location(player.getWorld(), player.getLocation().getX(), player.getLocation().getY()-i, player.getLocation().getZ());
|
||||||
Block lower = newLocation.getBlock();
|
Block lower = newLocation.getBlock();
|
||||||
if(lower.getTypeId() == 0)
|
if(lower.getTypeId() == 0)
|
||||||
|
|||||||
@@ -42,8 +42,11 @@ public class CheckManager
|
|||||||
|
|
||||||
public void activateCheck(CheckType type)
|
public void activateCheck(CheckType type)
|
||||||
{
|
{
|
||||||
manager.log("The "+type.toString()+" check was activated.");
|
if(checkIgnoreList.contains(type))
|
||||||
checkIgnoreList.remove(type);
|
{
|
||||||
|
manager.log("The "+type.toString()+" check was activated.");
|
||||||
|
checkIgnoreList.remove(type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void deactivateCheck(CheckType type)
|
public void deactivateCheck(CheckType type)
|
||||||
@@ -60,13 +63,16 @@ public class CheckManager
|
|||||||
public void exemptPlayer(Player player, CheckType type)
|
public void exemptPlayer(Player player, CheckType type)
|
||||||
{
|
{
|
||||||
manager.log(player.getName()+" was exempted from the "+type.toString()+" check.");
|
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)
|
public void unexemptPlayer(Player player, CheckType type)
|
||||||
{
|
{
|
||||||
manager.log(player.getName()+" was re-added to the "+type.toString()+" check.");
|
if(exemptList.containsEntry(player, type))
|
||||||
exemptList.remove(type, type);
|
{
|
||||||
|
manager.log(player.getName()+" was re-added to the "+type.toString()+" check.");
|
||||||
|
exemptList.remove(player, type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isExempt(Player player, CheckType type)
|
public boolean isExempt(Player player, CheckType type)
|
||||||
|
|||||||
Reference in new issue
Block a user