added an onPlayerConnect