From 73e4f6048216763880cf9d433245df48e5e7b2b6 Mon Sep 17 00:00:00 2001 From: Jules Date: Thu, 9 Mar 2023 18:25:43 +0100 Subject: [PATCH] Fixed an issue with item set permissions --- .../main/java/net/Indyuce/mmoitems/api/player/PlayerData.java | 1 + 1 file changed, 1 insertion(+) diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/player/PlayerData.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/player/PlayerData.java index 3b41cac7..45204eb6 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/player/PlayerData.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/player/PlayerData.java @@ -287,6 +287,7 @@ public class PlayerData { if (setBonuses != null) { if (MMOItems.plugin.hasPermissions()) { final Permission perms = MMOItems.plugin.getVault().getPermissions(); + permissions.addAll(setBonuses.getPermissions()); for (String perm : setBonuses.getPermissions()) if (!perms.has(getPlayer(), perm)) perms.playerAdd(getPlayer(), perm);