mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-11-14 10:45:23 +01:00
Prevent backpack shrinking if player doesn't have permission to open it
This commit is contained in:
parent
82c5f3cf2e
commit
2156e0d6b7
@ -101,7 +101,7 @@ public void open(@NotNull Player player, boolean editable, @Nullable String titl
|
||||
if(owner.isOnline())
|
||||
{
|
||||
Player owner = this.owner.getPlayer();
|
||||
if(owner != null)
|
||||
if(owner != null && owner.hasPermission("backpack.use"))
|
||||
{
|
||||
int size = Minepacks.getInstance().getBackpackPermSize(owner);
|
||||
if(size != bp.getSize())
|
||||
|
Loading…
Reference in New Issue
Block a user