mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
Fix regression in permission based item spawning (#4100)
This commit is contained in:
parent
d75787726c
commit
0668e4c48a
@ -277,6 +277,8 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
|
||||
final int id = material.getId();
|
||||
if (isAuthorized("essentials.itemspawn.item-" + id)) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return isAuthorized("essentials.itemspawn.exempt") || !ess.getSettings().itemSpawnBlacklist().contains(material);
|
||||
|
Loading…
Reference in New Issue
Block a user