mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-03-09 12:49:21 +01:00
parent
16268bd795
commit
862e36f9f7
@ -42,6 +42,10 @@ import java.util.stream.Collectors;
|
||||
public class ConfigurationItemHelper {
|
||||
|
||||
public static ItemStack createConfigurationItem(ItemStack stack, int model, String title, List<String> lore, HashMap<String, Object> replacements, String... nbtData) {
|
||||
if (stack.getType() == CompMaterial.AIR.parseMaterial())
|
||||
return stack;
|
||||
|
||||
|
||||
final ItemMeta meta = stack.getItemMeta();
|
||||
assert meta != null;
|
||||
meta.setDisplayName(TextUtils.formatText(title));
|
||||
|
Loading…
Reference in New Issue
Block a user