Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Removed extra information from chest menu icons
Browse files Browse the repository at this point in the history
  • Loading branch information
RypoFalem committed Nov 28, 2016
1 parent 6e28c81 commit 9ec9bfb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/io/github/rypofalem/armorstandeditor/PlayerEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ public void setTarget(ArrayList<ArmorStand> armorStands){
sendMessage("target", null);
}
}
plugin.print(targetIndex + "");
target = targetList.get(targetIndex);
glow(target);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.bukkit.entity.ArmorStand;
import org.bukkit.inventory.EntityEquipment;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;

Expand Down Expand Up @@ -67,6 +68,8 @@ private ItemStack createIcon(Material mat, String slot){
loreList.add(pe.plugin.getLang().getMessage("equipslot.description", "icondescription", slot)); //equioslot.description.msg <option>
loreList.add(Util.encodeHiddenLore("ase icon"));
meta.setLore(loreList);
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
meta.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS);
icon.setItemMeta(meta);
return icon;
}
Expand Down
12 changes: 4 additions & 8 deletions src/io/github/rypofalem/armorstandeditor/menu/Menu.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.PotionMeta;
Expand Down Expand Up @@ -188,14 +189,7 @@ private void fillInventory() {
}

private ItemStack createIcon(ItemStack icon, String path, String command){
ItemMeta meta = icon.getItemMeta();
meta.setDisplayName(getIconName(path));
ArrayList<String> loreList = new ArrayList<String>();
loreList.add(Util.encodeHiddenLore("ase " + command));
loreList.add(getIconDescription(path));
meta.setLore(loreList);
icon.setItemMeta(meta);
return icon;
return createIcon(icon, path, command, null);
}

private ItemStack createIcon(ItemStack icon, String path, String command, String option){
Expand All @@ -205,6 +199,8 @@ private ItemStack createIcon(ItemStack icon, String path, String command, String
loreList.add(Util.encodeHiddenLore("ase " + command));
loreList.add(getIconDescription(path, option));
meta.setLore(loreList);
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
meta.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS);
icon.setItemMeta(meta);
return icon;
}
Expand Down

0 comments on commit 9ec9bfb

Please sign in to comment.