Added book input

This commit is contained in:
bluefireoly
2020-10-24 00:22:02 +02:00
parent df4f8e19d5
commit a018eb197a
2 changed files with 68 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
package net.axay.kspigot.extensions.bukkit
import org.bukkit.inventory.meta.BookMeta
import java.lang.StringBuilder
val BookMeta.content get() =
StringBuilder().apply {
for (it in pages) {
if (isNotEmpty())
append('\n')
append(it)
}
}.toString()