Skip to content

Instantly share code, notes, and snippets.

@aikar
Created June 9, 2014 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aikar/787481403906fb21fe26 to your computer and use it in GitHub Desktop.
Save aikar/787481403906fb21fe26 to your computer and use it in GitHub Desktop.
public static final UsableCustomItem LABOR_BENCH =
new UsableCustomItem("LaborBench", Material.WORKBENCH) {
{
ItemUtil.buildLore(this).setName("&aLabor Bench")
.add("&32013 Labor Day Promo Item")
.empty()
.add("&3&l (Open Workbench without placing)")
.save();
}
@Override
public ItemStack onUse(Player player, ItemStack item) {
player.openWorkbench(player.getLocation(), true);
return null;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment