@Listener
public void onPlayerInteract(InteractEntityEvent e, @First Player p) {
Entity ent = e.getTargetEntity();
RedProtect.logger.debug("player","RPPlayerListener - Is InteractEntityEvent event: " + ent.getType().getName());
Location<World> l = ent.getLocation();
Region r = RedProtect.rm.getTopRegion(l);
if (r == null){
return;
}
if (ent instanceof Hanging || ent instanceof ArmorStand) {
if (!r.canBuild(p)) {
RPLang.sendMessage(p, "playerlistener.region.cantedit");
e.setCancelled(true);
return;
}
}
...
Checking Hanging work for Paintning and ItemFrames, but ArmorStand dont work
That might be totally outdated, but:
I had that problem a while ago at the starts of Sponge, and realized that not even Forge itself fires any event when e.g. changing armor on an armorstand … i haven’t looked in further since now, but that still might be the problem? Or are you using Sponge Vanilla?