Fix regression in permission based item spawning (#4100)

This commit is contained in:
Suyeol Jeon 2021-04-04 00:38:04 +09:00 committed by GitHub
parent d75787726c
commit 0668e4c48a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);