public void setItemName(Material item, String name) {
customNames.put(item.getRawId(), item.getRawData(), name);
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
if (player instanceof SpoutCraftPlayer) {
if (((SpoutPlayer) player).isSpoutCraftEnabled()) {
((SpoutPlayer) player).sendPacket(new PacketItemName(item.getRawId(), (short) item.getRawData(), name));
}
}
}
}