Skip to content

Commit

Permalink
Added security
Browse files Browse the repository at this point in the history
  • Loading branch information
sarhatabaot committed Jul 4, 2019
1 parent 10b3778 commit 113223b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ private Inventory generateEnchantMenu(@NotNull Player p, @NotNull ItemStack item

private ItemStack generateBackItem() {
Material material = Material.matchMaterial(EShopShop.getInstance().getString("shop.back-item"));

if(material == null)
material = Material.EMERALD;

ItemStack backItem = new ItemStack(material);
ItemMeta meta = backItem.getItemMeta();
meta.setDisplayName("Go back");
Expand Down

0 comments on commit 113223b

Please sign in to comment.