# Package net.axay.kspigot.chat.input

## Types

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

## Functions

awaitAnvilInput
Link copied to clipboard
fun Player.awaitAnvilInput(invTitle: String = "Type your input!", startText: String = "RENAME ME", renameItemDescription: List<String> = listOf( "Rename this item to", "submit your input!" ), timeoutSeconds: Int = 1 * 60, callback: (PlayerInputResult<String>) -> Unit)
Content copied to clipboard
Opens an anvil GUI and uses the new name of the renamed item as the players' input.
awaitBookInputAsList
Link copied to clipboard
fun Player.awaitBookInputAsList(timeoutSeconds: Int = 1 * 60, callback: (PlayerInputResult<List<String>>) -> Unit)
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)
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.