Added awaitBookInput

This commit is contained in:
bluefireoly
2020-10-25 21:28:08 +01:00
parent 25c769be03
commit 66eed3859e

View File

@@ -41,6 +41,13 @@ fun Player.awaitAnvilInput(
PlayerInputAnvilInv(this, callback, timeoutSeconds, invTitle, startText, renameItemDescription)
}
fun Player.awaitBookInput(
timeoutSeconds: Int = 1 * 60,
callback: (String?) -> Unit
) {
PlayerInputBook(this, callback, timeoutSeconds)
}
internal abstract class PlayerInput(
protected val player: Player,
private val callback: (String?) -> Unit,