public void checkBlock(Player player, Location location) { Vector vector = player.getVelocity(); Material material = location.subtract(0, 1, 0).getBlock().getType(); if (material == Material.NETHER_BRICK) { player.setVelocity(location.getDirection() .add(new Vector(vector.multiply(1.5).getX(), 0.7, vector.multiply(1.5).getZ()))); this.sendEffects(player, location, "magie", "ENDERMAN_TELEPORT", 0F, 0F, 0F, 20); } else if (material == Material.LAPIS_BLOCK) { player.setVelocity(new Vector(vector.getX(), 4, vector.getZ())); this.sendEffects(player, location, "neige", "EXPLODE", 0F, 15F, 0F, 50); } }