Simple example on how to catch player events and respond accordingly.