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:
@@ -642,7 +642,7 @@ class EntityEventHandler implements Listener
|
|||||||
}
|
}
|
||||||
|
|
||||||
//otherwise player must have container trust in the claim
|
//otherwise player must have container trust in the claim
|
||||||
String failureReason = claim.allowContainers(attacker);
|
String failureReason = claim.allowBuild(attacker, Material.AIR);
|
||||||
if(failureReason != null)
|
if(failureReason != null)
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user