add event to detect and prevent the placement of robots
fix style
Merge pull request #2024 from AEnterprise/6.1.x

add event to detect and prevent the placement of robots