diff --git a/src/main/java/top/penowl/quidproquo/Events.java b/src/main/java/top/penowl/quidproquo/Events.java index d4c3ff2..973e321 100644 --- a/src/main/java/top/penowl/quidproquo/Events.java +++ b/src/main/java/top/penowl/quidproquo/Events.java @@ -44,6 +44,8 @@ public final class Events implements Listener { // skip if we didn't click an altar if (!Altar.CheckAltar(block.getLocation())) return; + event.setCancelled(true); + // cycle targets if player is sneaking, otherwise try to enact a ritual if (player.isSneaking()) { diff --git a/src/main/java/top/penowl/quidproquo/QuidProQuo.java b/src/main/java/top/penowl/quidproquo/QuidProQuo.java index 1254a52..6e5d55b 100644 --- a/src/main/java/top/penowl/quidproquo/QuidProQuo.java +++ b/src/main/java/top/penowl/quidproquo/QuidProQuo.java @@ -5,7 +5,6 @@ import java.util.HashMap; import java.util.Set; import java.util.UUID; -import org.bukkit.command.Command; import org.bukkit.event.HandlerList; import org.bukkit.plugin.java.JavaPlugin; import org.reflections.Reflections;