Update ItemStackUtils.kt

This commit is contained in:
bluefireoly
2020-10-30 21:51:16 +01:00
parent cb8bf3562c
commit 649f30296f

View File

@@ -7,15 +7,7 @@ import net.md_5.bungee.api.ChatColor
* Converts this string into a list of strings, which
* can be used for minecraft lorelists.
*/
@Suppress("RemoveRedundantSpreadOperator")
fun String.toLoreList(lineLength: Int = 40, lineColor: ChatColor = KColors.RESET)
= toLoreList(lineLength, *arrayOf(lineColor))
/**
* Converts this string into a list of strings, which
* can be used for minecraft lorelists.
*/
fun String.toLoreList(lineLength: Int = 40, vararg lineColors: ChatColor = arrayOf(KColors.RESET)): List<String> {
fun String.toLoreList(vararg lineColors: ChatColor = arrayOf(KColors.RESET), lineLength: Int = 40): List<String> {
val lineColor = lineColors.joinToString()