mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Merge branch 'master' of https://github.com/h31ix/AntiCheat.git
This commit is contained in:
commit
21df280f4c
1 file changed
+7
-3
@@ -146,7 +146,7 @@ public class Backend
|
||||
|
||||
public boolean checkYSpeed(Player player,double y)
|
||||
{
|
||||
if(!player.isFlying() && player.getVehicle() == null && y > Y_SPEED_MAX)
|
||||
if(/*!player.isFlying() &&*/ player.getVehicle() == null && y > Y_SPEED_MAX)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -190,7 +190,7 @@ public class Backend
|
||||
|
||||
public boolean checkXZSpeed(Player player,double x,double z)
|
||||
{
|
||||
if(!isMovingExempt(player) && player.getVehicle() == null)
|
||||
if(!isSpeedExempt(player) && player.getVehicle() == null)
|
||||
{
|
||||
if(!player.isSprinting())
|
||||
{
|
||||
@@ -659,7 +659,11 @@ public class Backend
|
||||
public boolean isMovingExempt(Player player)
|
||||
{
|
||||
return movingExempt.contains(player.getName()) || player.isFlying();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isSpeedExempt(Player player) {
|
||||
return movingExempt.contains(player.getName());
|
||||
}
|
||||
|
||||
public void logDroppedItem(final Player player)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user