mirror of
https://github.com/Auxilor/Reforges.git
synced 2025-12-30 20:39:13 +00:00
Fixed display
This commit is contained in:
@@ -69,7 +69,7 @@ class ReforgesDisplay(private val plugin: ReforgesPlugin) : DisplayModule(plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (stone != null) {
|
if (stone != null) {
|
||||||
meta.setDisplayName(plugin.configYml.getString("reforge.stone.name").replace("%reforge%", stone.name))
|
meta.setDisplayName(stone.config.getFormattedString("stone.name"))
|
||||||
if (stone.config.has("stone.texture") && stone.config.getString("stone.texture").isNotEmpty()) {
|
if (stone.config.has("stone.texture") && stone.config.getString("stone.texture").isNotEmpty()) {
|
||||||
SkullUtils.setSkullTexture(
|
SkullUtils.setSkullTexture(
|
||||||
meta as SkullMeta,
|
meta as SkullMeta,
|
||||||
@@ -77,8 +77,8 @@ class ReforgesDisplay(private val plugin: ReforgesPlugin) : DisplayModule(plugin
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
itemStack.itemMeta = meta
|
itemStack.itemMeta = meta
|
||||||
val stoneLore = plugin.configYml.getStrings("reforge.stone.lore").map {
|
val stoneLore = stone.config.getFormattedStrings("stone.lore").map {
|
||||||
"${Display.PREFIX}${it.replace("%reforge%", stone.name)}"
|
"${Display.PREFIX}$it"
|
||||||
}.toList()
|
}.toList()
|
||||||
lore.addAll(0, stoneLore)
|
lore.addAll(0, stoneLore)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user