diff --git a/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt b/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt index ebe86426..494e9f40 100644 --- a/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt +++ b/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt @@ -42,13 +42,20 @@ fun Player.awaitAnvilInput( PlayerInputAnvilInv(this, callback, timeoutSeconds, invTitle, startText, renameItemDescription) } -fun Player.awaitBookInput( +fun Player.awaitBookInputAsString( timeoutSeconds: Int = 1 * 60, callback: (PlayerInputResult) -> Unit ) { PlayerInputBookComprehensive(this, callback, timeoutSeconds) } +fun Player.awaitBookInputAsList( + timeoutSeconds: Int = 1 * 60, + callback: (PlayerInputResult>) -> Unit +) { + PlayerInputBookPaged(this, callback, timeoutSeconds) +} + class PlayerInputResult internal constructor(val input: T?) internal abstract class PlayerInput(