def getPlayerDimension(self, player="Player"):
        '''
        Gets the dimension that the specified player is currently in
        
        :param player: The UUID of the player
        :type player: str
        :return: The dimension the player is currently in
        :rtype: int
        '''
        playerTag = self.getPlayerTag(player)
        if "Dimension" not in playerTag:
            return 0
        return playerTag["Dimension"].value

        Gets the dimension that the specified player is currently in
        
        :param player: The UUID of the player
        :type player: str
        :return: The dimension the player is currently in
        :rtype: int
        
pymclevel/infiniteworld.py