Update Main.php

it's an entity event not player event