diff --git a/pom.xml b/pom.xml
index eaab346..15eaf31 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
at.pcgamingfreaks
MinePacks
- 1.17.11
+ 1.17.12-SNAPSHOT
scm:git:git@github.com:GeorgH93/Minepacks.git
diff --git a/src/at/pcgamingfreaks/MinePacks/Backpack.java b/src/at/pcgamingfreaks/MinePacks/Backpack.java
index ef0ce18..4639d94 100644
--- a/src/at/pcgamingfreaks/MinePacks/Backpack.java
+++ b/src/at/pcgamingfreaks/MinePacks/Backpack.java
@@ -93,7 +93,7 @@ public void open(Player p, boolean editable)
if(owner.isOnline())
{
Player player = owner.getPlayer();
- if(player != null)
+ if(player != null && (player.hasPermission("backpack") || player.hasPermission("backpack.use")))
{
int size = MinePacks.getBackpackPermSize(player);
if(size != bp.getSize())
@@ -101,10 +101,10 @@ public void open(Player p, boolean editable)
List items = setSize(size);
for(ItemStack i : items)
{
- if (i != null)
+ if(i != null)
{
player.getWorld().dropItemNaturally(player.getLocation(), i);
- hasChanged = true;
+ hasChanged = true;
}
}
}