From e079d2c487bb97b734dc0d261ea7de45aad1f89d Mon Sep 17 00:00:00 2001 From: Edith Boles Date: Tue, 5 Oct 2021 17:35:46 -0700 Subject: [PATCH] Add experience ritual --- .../quidproquo/rituals/ExperienceRitual.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/main/java/top/penowl/quidproquo/rituals/ExperienceRitual.java diff --git a/src/main/java/top/penowl/quidproquo/rituals/ExperienceRitual.java b/src/main/java/top/penowl/quidproquo/rituals/ExperienceRitual.java new file mode 100644 index 0000000..3b55e27 --- /dev/null +++ b/src/main/java/top/penowl/quidproquo/rituals/ExperienceRitual.java @@ -0,0 +1,27 @@ +package top.penowl.quidproquo.rituals; + +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.entity.Player; + +import top.penowl.quidproquo.Ritual; + +public class ExperienceRitual extends Ritual { + + @Override + public void setup() { + addIngredient(Material.REDSTONE_BLOCK, 9); + addIngredient(Material.WHEAT, 16); + addIngredient(Material.GLASS_BOTTLE, 1); + health = 1; + name = "experience"; + description = "Experience the easy way."; + notify = false; + } + + @Override + public void execute(Player caster, Player target, Location location) { + caster.giveExp(200000); + } + +}