Created
June 9, 2014 16:55
-
-
Save aikar/787481403906fb21fe26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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