mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Rip out vehicle limits due to issues with track switching.
This commit is contained in:
1 parent
b1a120be11
commit
4c8733f4a4
1 file changed
+1
-10
@@ -238,16 +238,7 @@ public class PlayerListener implements Listener {
|
|||||||
//Are they in a vehicle?
|
//Are they in a vehicle?
|
||||||
if (player.getVehicle() != null)
|
if (player.getVehicle() != null)
|
||||||
{
|
{
|
||||||
//If they are just entering it, skip the check. They are moving way too fast naturally.
|
//Nothing to do
|
||||||
if(!ex.isEntering(player))
|
|
||||||
{
|
|
||||||
if(xd > 0.6D || zd > 0.6D)
|
|
||||||
{
|
|
||||||
tracker.increaseLevel(player,2);
|
|
||||||
plugin.log(player.getName()+" is using a vehicle too fast! XSpeed="+xd+" ZSpeed="+zd);
|
|
||||||
event.setTo(event.getFrom().clone());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//Otherwise, are they sneaking?
|
//Otherwise, are they sneaking?
|
||||||
else if(player.isSneaking())
|
else if(player.isSneaking())
|
||||||
|
|||||||
Reference in new issue
Block a user