mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Fix regression in permission based item spawning (#4100)
This commit is contained in:
parent
d75787726c
commit
0668e4c48a
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue