# Package net.axay.kspigot.chat.input

## Types

PlayerInputResult
Link copied to clipboard
class PlayerInputResult<T>
Content copied to clipboard

## Functions

awaitBookInputAsList
Link copied to clipboard
fun Player.awaitBookInputAsList(timeoutSeconds: Int = 1 * 60, callback: (PlayerInputResult<List<String>>) -> Unit): ItemStack
Content copied to clipboard
Opens a book and uses the text the player inserted on all sites as the players' input.
awaitBookInputAsString
Link copied to clipboard
fun Player.awaitBookInputAsString(timeoutSeconds: Int = 1 * 60, callback: (PlayerInputResult<String>) -> Unit): ItemStack
Content copied to clipboard
Opens a book and uses the text the player inserted on all sites as the players' input.
awaitChatInput
Link copied to clipboard
fun Player.awaitChatInput(question: String = "Type your input in the chat!", timeoutSeconds: Int = 1 * 60, callback: (PlayerInputResult<String>) -> Unit)
Content copied to clipboard
Asks the player a question and uses the next chat input of the player as his input.