Added support for 1.8.8

This commit is contained in:
BuildTools committed 2020-04-19 17:09:30 +02:00
1 parent 661718d001
commit 67e824ef28
14 files changed
+2368 -211

No files matched your search

@@ -73,9 +73,7 @@ public class SpeedCheck {
} else if (player.isSprinting()) {
String blockDownName = player.getLocation().getBlock().getRelative(BlockFace.DOWN).getType().name();
if (blockDownName.endsWith("ICE")
&& ((player.getEyeLocation().getBlock().getRelative(BlockFace.UP).getType() != Material.AIR)
&& (player.getEyeLocation().getBlock().getRelative(BlockFace.UP)
.getType() != Material.CAVE_AIR))) {
&& (player.getEyeLocation().getBlock().getRelative(BlockFace.UP).getType() != Material.AIR)) {
if (player.getLocation().getBlock().getType().name().endsWith("TRAPDOOR")) {
reason = "while boosting on " + blockDownName.toLowerCase().replaceAll("_", " ")
+ " and trapdoor";