mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fixed minecart elevators and other speedy vehicle lifting stuff.
This commit is contained in:
1 parent
3abed11387
commit
92175c741c
1 file changed
+8
-5
@@ -243,12 +243,15 @@ public class PlayerListener implements Listener {
|
||||
event.setTo(event.getFrom().clone());
|
||||
}
|
||||
}
|
||||
//Otherwise check for fast ascension
|
||||
else if(yd > 0.5D)
|
||||
else if(player.getGameMode() != GameMode.CREATIVE && player.getVehicle() == null)
|
||||
{
|
||||
tracker.increaseLevel(player);
|
||||
plugin.log(player.getName()+" is ascending too fast! YSpeed="+yd);
|
||||
event.setTo(event.getFrom().clone());
|
||||
//Otherwise check for fast ascension
|
||||
if(yd > 0.5D)
|
||||
{
|
||||
tracker.increaseLevel(player);
|
||||
plugin.log(player.getName()+" is ascending too fast! YSpeed="+yd);
|
||||
event.setTo(event.getFrom().clone());
|
||||
}
|
||||
}
|
||||
}
|
||||
//If they are falling
|
||||
|
||||
Reference in new issue
Block a user