Fixed the null error in player leave (thanks kraftman)
Fixed the setportal to not need the 3rd argument to work