Fixed an issue with item set permissions

This commit is contained in:
Jules 2023-03-09 18:25:43 +01:00
parent d42e35847a
commit 73e4f60482

View File

@ -287,6 +287,7 @@ public class PlayerData {
if (setBonuses != null) { if (setBonuses != null) {
if (MMOItems.plugin.hasPermissions()) { if (MMOItems.plugin.hasPermissions()) {
final Permission perms = MMOItems.plugin.getVault().getPermissions(); final Permission perms = MMOItems.plugin.getVault().getPermissions();
permissions.addAll(setBonuses.getPermissions());
for (String perm : setBonuses.getPermissions()) for (String perm : setBonuses.getPermissions())
if (!perms.has(getPlayer(), perm)) if (!perms.has(getPlayer(), perm))
perms.playerAdd(getPlayer(), perm); perms.playerAdd(getPlayer(), perm);