Added awaitBookInput
This commit is contained in:
@@ -41,6 +41,13 @@ fun Player.awaitAnvilInput(
|
|||||||
PlayerInputAnvilInv(this, callback, timeoutSeconds, invTitle, startText, renameItemDescription)
|
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(
|
internal abstract class PlayerInput(
|
||||||
protected val player: Player,
|
protected val player: Player,
|
||||||
private val callback: (String?) -> Unit,
|
private val callback: (String?) -> Unit,
|
||||||
|
Reference in New Issue
Block a user