diff --git a/EpicVouchers.iml b/EpicVouchers.iml index 94f15e1..a2328a5 100644 --- a/EpicVouchers.iml +++ b/EpicVouchers.iml @@ -1,5 +1,14 @@ + + + + + SPIGOT + + + + @@ -10,7 +19,8 @@ - + + diff --git a/src/main/java/com/songoda/epicvouchers/listeners/PlayerInteractListener.java b/src/main/java/com/songoda/epicvouchers/listeners/PlayerInteractListener.java index c26886a..76c043a 100644 --- a/src/main/java/com/songoda/epicvouchers/listeners/PlayerInteractListener.java +++ b/src/main/java/com/songoda/epicvouchers/listeners/PlayerInteractListener.java @@ -29,7 +29,7 @@ public class PlayerInteractListener implements Listener { for (Voucher voucher : instance.getVouchers().values()) { Player player = event.getPlayer(); - if (!player.hasPermission(voucher.getPermission())) { + if (!player.hasPermission(voucher.getPermission()) && !voucher.getPermission().isEmpty()) { continue; }