mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-21 09:21:21 +01:00
Improved support for Vault
This commit is contained in:
parent
75fe7a737b
commit
d6dfe66e84
@ -74,7 +74,7 @@ public class PlayerData {
|
||||
craftingStatus.load(this, config.getConfigurationSection("crafting-queue"));
|
||||
|
||||
if (MMOItems.plugin.hasPermissions() && config.contains("permissions-from-items")) {
|
||||
Permission perms = MMOItems.plugin.getVault().getPermissions();
|
||||
final Permission perms = MMOItems.plugin.getVault().getPermissions();
|
||||
config.getStringList("permissions-from-items").forEach(perm -> {
|
||||
if (perms.has(getPlayer(), perm))
|
||||
perms.playerRemove(getPlayer(), perm);
|
||||
@ -170,7 +170,7 @@ public class PlayerData {
|
||||
itemParticles.clear();
|
||||
overridingItemParticles = null;
|
||||
if (MMOItems.plugin.hasPermissions()) {
|
||||
Permission perms = MMOItems.plugin.getVault().getPermissions();
|
||||
final Permission perms = MMOItems.plugin.getVault().getPermissions();
|
||||
permissions.forEach(perm -> {
|
||||
if (perms.has(getPlayer(), perm)) {
|
||||
perms.playerRemove(getPlayer(), perm);
|
||||
|
Loading…
Reference in New Issue
Block a user