mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-30 04:19:28 +00:00
feat: add PAPI support for display names
This commit is contained in:
@@ -243,6 +243,11 @@ public class CosmeticUser {
|
||||
processedLore.add(loreLine);
|
||||
}
|
||||
}
|
||||
if (itemMeta.hasDisplayName()) {
|
||||
String displayName = itemMeta.getDisplayName();
|
||||
if (Hooks.isActiveHook("PlaceholderAPI")) displayName = PlaceholderAPI.setPlaceholders(getPlayer(), displayName);
|
||||
itemMeta.setDisplayName(displayName);
|
||||
}
|
||||
itemMeta.setLore(processedLore);
|
||||
|
||||
if (colors.containsKey(cosmetic.getSlot())) {
|
||||
|
||||
Reference in New Issue
Block a user