- Баллы
- 76
Код:
@EventHandler
public void onBreak(BlockBreakEvent e) {
Player p = e.getPlayer();
if (e.getBlock().getType()==Material.SIGN || e.getBlock().getType()==Material.SIGN_POST || e.getBlock().getType()==Material.WALL_SIGN) {
Sign s = (Sign) e.getBlock();
p.sendMessage("Region");
if (plugin.getConfig().getConfigurationSection("price").getKeys(false).contains(s.getLine(1))) {
plugin.getConfig().set("price."+s.getLine(1), null);
plugin.saveConfig();
plugin.reloadConfig();
}
}
}
Как исправить ошибка при конвертации блока в табличку