Alguem pode me mandar um exemplo de como pegar um bloco tal
da config ? Eu consegui fazer com Mensagem e etc , mais com bloco
eu não estou conseguindo fazer , a config ja está gerada
só falta retirar o bloco dela.
Cod - Quero tira o bloco para colocar ali em STONE
@EventHandler
public void PlayerAndar(PlayerMoveEvent e){
Player p = e.getPlayer();
Block block = e.getTo().getBlock().getRelative(BlockFace.DOWN);
if (block.getType() == Material.STONE){
p.setVelocity(p.getLocation().getDirection().multiply(1));
p.setVelocity(new Vector(p.getVelocity().getX(), 1, p.getVelocity().getZ()));
p.playSound(p.getLocation(), Sound.SLIME_WALK2, 1, 1);
}
}