Do not let players create shops on donation chests

This commit is contained in:
Andrzej Pomirski 2015-07-12 19:18:53 +02:00
parent 3c949f0450
commit 17c2f943c6

View File

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