From d3a6831bd8bcc3a5b4c36ff991de5779a7581f4a Mon Sep 17 00:00:00 2001 From: Brianna Date: Sun, 7 Jul 2019 03:24:45 -0400 Subject: [PATCH] Fix for perms --- .gitlab-ci.yml | 2 +- .../songoda/epicbuckets/listeners/GenbucketPlaceListener.java | 3 ++- pom.xml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b7d4065..1b09126 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "EpicBuckets" path: "/builds/$CI_PROJECT_PATH" - version: "1.6" + version: "1.6.1" build: stage: build diff --git a/EpicBuckets-Plugin/src/main/java/com/songoda/epicbuckets/listeners/GenbucketPlaceListener.java b/EpicBuckets-Plugin/src/main/java/com/songoda/epicbuckets/listeners/GenbucketPlaceListener.java index d340564..a060780 100644 --- a/EpicBuckets-Plugin/src/main/java/com/songoda/epicbuckets/listeners/GenbucketPlaceListener.java +++ b/EpicBuckets-Plugin/src/main/java/com/songoda/epicbuckets/listeners/GenbucketPlaceListener.java @@ -14,6 +14,7 @@ import com.songoda.epicbuckets.utils.itemnbtapi.NBTItem; import org.bukkit.Bukkit; import org.bukkit.GameMode; import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerBucketEmptyEvent; @@ -37,7 +38,7 @@ public class GenbucketPlaceListener implements Listener { } } - @EventHandler + @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void onInteract(PlayerInteractEvent e) { if (e.getAction() != Action.RIGHT_CLICK_BLOCK || e.getItem() == null) return; diff --git a/pom.xml b/pom.xml index 3d1b2cc..0f5a530 100644 --- a/pom.xml +++ b/pom.xml @@ -16,7 +16,7 @@ org.spigotmc spigot - 1.14 + 1.14.1 provided