From b6f83f95284701a028eec532f9034e7f5b00cc43 Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 6 Aug 2019 21:11:25 -0400 Subject: [PATCH] steal food. --- .../epicenchants/effect/effects/StealFood.java | 1 + .../resources/enchants/ultimate/FoodSteal.yml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/songoda/epicenchants/effect/effects/StealFood.java b/src/main/java/com/songoda/epicenchants/effect/effects/StealFood.java index 54dca47..d8190a3 100644 --- a/src/main/java/com/songoda/epicenchants/effect/effects/StealFood.java +++ b/src/main/java/com/songoda/epicenchants/effect/effects/StealFood.java @@ -2,6 +2,7 @@ package com.songoda.epicenchants.effect.effects; import com.songoda.epicenchants.effect.EffectExecutor; import com.songoda.epicenchants.enums.EventType; +import org.bukkit.Bukkit; import org.bukkit.configuration.ConfigurationSection; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; diff --git a/src/main/resources/enchants/ultimate/FoodSteal.yml b/src/main/resources/enchants/ultimate/FoodSteal.yml index 087bf66..38271af 100644 --- a/src/main/resources/enchants/ultimate/FoodSteal.yml +++ b/src/main/resources/enchants/ultimate/FoodSteal.yml @@ -21,12 +21,12 @@ description: item-whitelist: - "SWORDS" -STEAL_FOOD: - # The trigger that will fire this effect - trigger: ATTACK_PLAYER_MELEE - # How much food does it should steal - amount: 3 - # At who this applies - who: OPPONENT - # Chance that this effect wil fire. - chance: "5*{level}" \ No newline at end of file +# For a full list of effects, please visit: https://docs.songoda.com/epic-series/epicenchants/tutorials +effects: + STEAL_FOOD: + # The trigger that will fire this effect + trigger: ATTACK_PLAYER_MELEE + # How much food does it should steal + amount: 3 + # Chance that this effect wil fire. + chance: "5*{level}" \ No newline at end of file