-Added missing code to run chat events on plugins