mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-25 00:01:21 +01:00
Do not let players create shops on donation chests
This commit is contained in:
parent
3c949f0450
commit
17c2f943c6
@ -60,7 +60,7 @@ public class LightweightChestProtection implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!lwc.canAccessProtection(player, protection)) {
|
||||
if (!lwc.canAccessProtection(player, protection) || protection.getType() == Protection.Type.DONATION) {
|
||||
event.setResult(Event.Result.DENY);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user