mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-29 05:26:12 +01:00
Make LWC donation and display protections work with shops
This commit is contained in:
parent
c9b8e136d1
commit
d3ed650b74
@ -120,7 +120,7 @@ public class LightweightChestProtection implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!lwc.canAccessProtection(player, protection) || protection.getType() == Protection.Type.DONATION) {
|
||||
if (!lwc.canAccessProtection(player, protection) && !protection.getType().name().equals("DONATION") && !protection.getType().name().equals("DISPLAY")) {
|
||||
event.setResult(Event.Result.DENY);
|
||||
} else if (Properties.TURN_OFF_DEFAULT_PROTECTION_WHEN_PROTECTED_EXTERNALLY) {
|
||||
event.setResult(Event.Result.ALLOW);
|
||||
|
Loading…
Reference in New Issue
Block a user