Removed redundant maxPurchaseAmount val property because ???

This commit is contained in:
Opal
2023-06-13 07:37:10 -07:00
parent 46d42c3b2e
commit 863cfcccca

View File

@@ -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<String>) {
if (args.isEmpty()) {
player.sendMessage(EcoShopPlugin.instance.langYml.getMessage("must-specify-item"))