@EventHandler
private void MinerarVender(BlockBreakEvent e)
{
Player p = e.getPlayer();
Block b = e.getBlock();
List<String> ids = this.pl.getConfig().getStringList("IDs");
for (String id : ids)
{
String[] valor = id.split(" ");
if (b.getTypeId() == Integer.parseInt(valor[0]))
{
this.pl.economy.depositPlayer(p, Integer.parseInt(valor[1]));
this.pl.sendActionBar(p,
this.pl.getConfig().getString("ActionBar.Mensagem").replace("&", "§").replace("{valor}", valor[1]));
e.getBlock().setType(Material.AIR);
e.setCancelled(true);
}
}
}
}
Like + Resolvido ?
de nada.