From 863cfcccca9f84604131c0bc449d446119d7050c Mon Sep 17 00:00:00 2001 From: Opal <58598304+Opalinium@users.noreply.github.com> Date: Tue, 13 Jun 2023 07:37:10 -0700 Subject: [PATCH] Removed redundant `maxPurchaseAmount` val property because ??? --- .../src/main/kotlin/com/willfp/ecoshop/commands/CommandBuy.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandBuy.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandBuy.kt index aa16345..a83a603 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandBuy.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandBuy.kt @@ -16,8 +16,6 @@ class CommandBuy(plugin: EcoPlugin) : PluginCommand( ) { private fun getMaxPurchaseAmount() = EcoShopPlugin.instance.configYml.getInt("max-purchase-amount") - private val maxPurchaseAmount = EcoShopPlugin.instance.configYml.getInt("max-purchase-amount") - override fun onExecute(player: Player, args: List) { if (args.isEmpty()) { player.sendMessage(EcoShopPlugin.instance.langYml.getMessage("must-specify-item"))