getIsOpen() is not a valid function in entities/Player.php, changed to getOpen().