Package net.axay.kspigot.chat.input

Types

PlayerInputResult
Link copied to clipboard
class PlayerInputResult<T>

Functions

awaitBookInputAsList
Link copied to clipboard
fun Player.awaitBookInputAsList(timeoutSeconds: Int = 1 * 60, callback: (PlayerInputResult<List<String>>) -> Unit): ItemStack
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
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)
Asks the player a question and uses the next chat input of the player as his input.