mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
Fixed an issue with item set permissions
This commit is contained in:
parent
d42e35847a
commit
73e4f60482
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user