Stronger protections for item frames, armor stands.
Now requires build trust to do damage, since they're decorative. Right-click access is still container trust.
This commit is contained in:
parent
a7a132ccf8
commit
682ededb81
|
|
@ -642,7 +642,7 @@ class EntityEventHandler implements Listener
|
|||
}
|
||||
|
||||
//otherwise player must have container trust in the claim
|
||||
String failureReason = claim.allowContainers(attacker);
|
||||
String failureReason = claim.allowBuild(attacker, Material.AIR);
|
||||
if(failureReason != null)
|
||||
{
|
||||
event.setCancelled(true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user