diff --git a/Server/src/main/content/global/skill/cooking/TeaInteraction.kt b/Server/src/main/content/global/skill/cooking/TeaInteraction.kt index a71d6a6e8..7b5ef4040 100644 --- a/Server/src/main/content/global/skill/cooking/TeaInteraction.kt +++ b/Server/src/main/content/global/skill/cooking/TeaInteraction.kt @@ -1,9 +1,6 @@ package content.global.skill.cooking -import core.api.addItem -import core.api.getDynLevel -import core.api.removeItem -import core.api.sendDialogue +import core.api.* import core.game.interaction.InteractionListener import core.game.node.Node import core.game.node.entity.player.Player @@ -124,9 +121,15 @@ class TeaInteraction : InteractionListener { } onUseWith(ITEM, leafTeaPot, Items.HOT_KETTLE_7691) { player, used, with -> + if (getDynLevel(player, Skills.COOKING) < 20){ + sendDialogue(player,"You need to be level 20 to make tea.") + return@onUseWith false + } if (removeItem(player, used) && removeItem(player, with)){ addItem(player, Items.KETTLE_7688) addItem(player, used.id - 8) + rewardXP(player, Skills.COOKING, 53.0) + } return@onUseWith true }