Is there any plugin or way for me to make the bot stop all movement,actions if there is a player near?
yes, you could write a very simple plugin to look for players in a certain distance, then if it returns true, then sleep the thread. i can be done in less then 10 lines of code easy, but theres nothing that exists currently at least not to my knowledge.