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 ab5d310b..8d934716 100644 --- a/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt +++ b/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt @@ -91,7 +91,7 @@ internal class PlayerInputAnvilInv( AnvilGUI.Builder().plugin(KSpigotMainInstance) .onClose { onReceive(null) } .onComplete { _, text -> - if (text.isNotEmpty()) { + return@onComplete if (text.isNotEmpty()) { onReceive(text) AnvilGUI.Response.close() } else