From 12faaa2cc1327bb2164a66d620336b451f36bf61 Mon Sep 17 00:00:00 2001 From: Jakob K Date: Tue, 15 Jun 2021 18:58:51 +0200 Subject: [PATCH] Update PlayerInput.kt --- .../axay/kspigot/chat/input/PlayerInput.kt | 19 ------------------- 1 file changed, 19 deletions(-) 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 5f1b47b7..15f44940 100644 --- a/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt +++ b/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt @@ -2,14 +2,12 @@ package net.axay.kspigot.chat.input -import net.axay.kspigot.chat.input.implementations.PlayerInputAnvilInv import net.axay.kspigot.chat.input.implementations.PlayerInputBookComprehensive import net.axay.kspigot.chat.input.implementations.PlayerInputBookPaged import net.axay.kspigot.chat.input.implementations.PlayerInputChat import net.axay.kspigot.event.unregister import net.axay.kspigot.runnables.sync import net.axay.kspigot.runnables.taskRunLater -import net.axay.kspigot.utils.mark import org.bukkit.entity.Player import org.bukkit.event.Listener @@ -25,23 +23,6 @@ fun Player.awaitChatInput( PlayerInputChat(this, callback, timeoutSeconds, question) } -/** - * Opens an anvil GUI and uses the new name of the - * renamed item as the players' input. - */ -fun Player.awaitAnvilInput( - invTitle: String = "Type your input!", - startText: String = "RENAME ME", - renameItemDescription: List = listOf( - "Rename this item to", - "submit your input!" - ), - timeoutSeconds: Int = 1 * 60, - callback: (PlayerInputResult) -> Unit, -) { - PlayerInputAnvilInv(this, callback, timeoutSeconds, invTitle, startText, renameItemDescription) -} - /** * Opens a book and uses the text the player inserted * on all sites as the players' input.