public GenericCustomItem(Plugin plugin, String name) { super( name, 318, mm.registerCustomItemName(plugin, plugin.getDescription().getName() + "." + name)); this.fullName = plugin.getDescription().getName() + "." + name; this.customId = mm.registerCustomItemName(plugin, fullName); this.plugin = plugin; this.setName(name); MaterialData.addCustomItem(this); for (SpoutPlayer player : Spout.getServer().getOnlinePlayers()) { player.sendPacket(this); } }
@Override public void setName(String name) { super.setName(name); mm.setItemName(this, name); }