changed Main class

changed join to OnPlayerJoin