Update OnEvent.java