mirror of
https://github.com/songoda/EpicBuckets.git
synced 2024-11-26 04:05:55 +01:00
Fix for perms
This commit is contained in:
parent
3231ed3e99
commit
d3a6831bd8
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "EpicBuckets"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "1.6"
|
||||
version: "1.6.1"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user