Update Main.php

I have never used your method of getting the server object, but I know this one works.   If it does not, you may want to check and see if the broadcastMessage function supports TextFormat colors.