Removed redundant maxPurchaseAmount val property because ???
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user