Simplified __playerEvent function