|
26 | 26 |
|
27 | 27 | public class Icon {
|
28 | 28 |
|
29 |
| - private Material material; |
30 |
| - private int amount; |
31 |
| - private short dataValue; |
| 29 | + private Material material; |
| 30 | + private int amount; |
| 31 | + private short dataValue; |
32 | 32 |
|
33 |
| - private String name; |
34 |
| - private List<String> lore; |
35 |
| - private Map<Enchantment, Integer> enchantments; |
36 |
| - private Color color; |
37 |
| - private String skullOwner; |
| 33 | + private String name; |
| 34 | + private List<String> lore; |
| 35 | + private Map<Enchantment, Integer> enchantments; |
| 36 | + private Color color; |
| 37 | + private String skullOwner; |
38 | 38 |
|
39 |
| - protected boolean closeOnClick; |
40 |
| - private ClickHandler clickHandler; |
| 39 | + protected boolean closeOnClick; |
| 40 | + private ClickHandler clickHandler; |
41 | 41 |
|
42 |
| - private Set<Variable> nameVariables; |
| 42 | + private Set<Variable> nameVariables; |
43 | 43 | private Map<Integer, Set<Variable>> loreVariables;
|
44 | 44 | // When there are no variables, we don't recreate the item.
|
45 |
| - private ItemStack cachedItem; |
| 45 | + private ItemStack cachedItem; |
46 | 46 |
|
47 | 47 | public Icon() {
|
48 | 48 | enchantments = new HashMap<Enchantment, Integer>();
|
@@ -221,7 +221,7 @@ protected String calculateName(Player pov) {
|
221 | 221 | // Add a color to display the name empty.
|
222 | 222 | return ChatColor.WHITE.toString();
|
223 | 223 | } else {
|
224 |
| - return name; |
| 224 | + return PlaceholderAPI.setPlaceholders(pov, name); |
225 | 225 | }
|
226 | 226 | }
|
227 | 227 |
|
|
0 commit comments