Fix for perms

This commit is contained in:
Brianna 2019-07-07 03:24:45 -04:00
parent 3231ed3e99
commit d3a6831bd8
3 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ stages:
variables: variables:
name: "EpicBuckets" name: "EpicBuckets"
path: "/builds/$CI_PROJECT_PATH" path: "/builds/$CI_PROJECT_PATH"
version: "1.6" version: "1.6.1"
build: build:
stage: build stage: build

View File

@ -14,6 +14,7 @@ import com.songoda.epicbuckets.utils.itemnbtapi.NBTItem;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.GameMode; import org.bukkit.GameMode;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.bukkit.event.block.Action; import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerBucketEmptyEvent; 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) { public void onInteract(PlayerInteractEvent e) {
if (e.getAction() != Action.RIGHT_CLICK_BLOCK || e.getItem() == null) return; if (e.getAction() != Action.RIGHT_CLICK_BLOCK || e.getItem() == null) return;

View File

@ -16,7 +16,7 @@
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId> <artifactId>spigot</artifactId>
<version>1.14</version> <version>1.14.1</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>